aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-09-26 18:42:23 -0500
committerRob Landley <rob@landley.net>2014-09-26 18:42:23 -0500
commite1fa787be8d0d66c9860c86dcb80fd6e096f74e0 (patch)
tree3c8492180750f517b28cdd6bf6021568c29d9301
parent08ac30d8606934a7bd8107312b0b2f3beeb315f5 (diff)
downloadtoybox-e1fa787be8d0d66c9860c86dcb80fd6e096f74e0.tar.gz
Separate more commands so single.sh can build them standalone.
-rw-r--r--toys/example/skeleton.c1
-rw-r--r--toys/lsb/md5sum.c10
2 files changed, 7 insertions, 4 deletions
diff --git a/toys/example/skeleton.c b/toys/example/skeleton.c
index 3e776be1..99e771aa 100644
--- a/toys/example/skeleton.c
+++ b/toys/example/skeleton.c
@@ -28,7 +28,6 @@ config SKELETON
config SKELETON_ALIAS
bool "skeleton_alias"
default n
- depends on SKELETON
help
usage: skeleton_alias [-dq] [-b NUMBER]
diff --git a/toys/lsb/md5sum.c b/toys/lsb/md5sum.c
index 83f7c92d..92e9221b 100644
--- a/toys/lsb/md5sum.c
+++ b/toys/lsb/md5sum.c
@@ -9,7 +9,7 @@
* and LSB standard command, sha1sum is just a good idea.
USE_MD5SUM(NEWTOY(md5sum, "b", TOYFLAG_USR|TOYFLAG_BIN))
-USE_MD5SUM_SHA1SUM(OLDTOY(sha1sum, md5sum, "b", TOYFLAG_USR|TOYFLAG_BIN))
+USE_SHA1SUM(NEWTOY(sha1sum, "b", TOYFLAG_USR|TOYFLAG_BIN))
config MD5SUM
bool "md5sum"
@@ -23,10 +23,9 @@ config MD5SUM
-b brief (hash only, no filename)
-config MD5SUM_SHA1SUM
+config SHA1SUM
bool "sha1sum"
default y
- depends on MD5SUM
help
usage: sha1sum [FILE]...
@@ -241,3 +240,8 @@ void md5sum_main(void)
{
loopfiles(toys.optargs, do_hash);
}
+
+void sha1sum_main(void)
+{
+ md5sum_main();
+}