changeset 1499:319e79bab052

Separate more commands so single.sh can build them standalone.
author Rob Landley <rob@landley.net>
date Fri, 26 Sep 2014 18:42:23 -0500
parents d965dfbee154
children cf77c4939385
files toys/example/skeleton.c toys/lsb/md5sum.c
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/toys/example/skeleton.c	Mon Sep 22 08:32:21 2014 -0500
+++ b/toys/example/skeleton.c	Fri Sep 26 18:42:23 2014 -0500
@@ -28,7 +28,6 @@
 config SKELETON_ALIAS
   bool "skeleton_alias"
   default n
-  depends on SKELETON
   help
     usage: skeleton_alias [-dq] [-b NUMBER]
 
--- a/toys/lsb/md5sum.c	Mon Sep 22 08:32:21 2014 -0500
+++ b/toys/lsb/md5sum.c	Fri Sep 26 18:42:23 2014 -0500
@@ -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 @@
 
     -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 @@
 {
   loopfiles(toys.optargs, do_hash);
 }
+
+void sha1sum_main(void)
+{
+  md5sum_main();
+}