[BusyBox] [PATCH] - Fixes installation of time applet

Steve Merrifield steve at labyrinth.net.au
Tue Dec 4 20:59:16 UTC 2001


Hi,
 
This patch fixes the installation of the new time applet. It has been
diffed
against the latest CVS.
 
What it does:
 
        Changes BB_TIME to CONFIG_TIME in include/applets.h to agree
with
        miscutils/config.in (and all other applets as well)
 
        Adds continuation slashes to the help in include/usage.h so that
        the whole help appears, not just the first line
 
        Adds time.o to miscutils/Makefile so the applet gets included
 
steve
-------------- next part --------------
diff -Naur busybox.orig/include/applets.h busybox/include/applets.h
--- busybox.orig/include/applets.h	Thu Nov 29 21:54:31 2001
+++ busybox/include/applets.h	Wed Dec  5 14:49:11 2001
@@ -437,7 +437,7 @@
 #ifdef CONFIG_TFTP
 	APPLET(tftp, tftp_main, _BB_DIR_USR_BIN)
 #endif
-#ifdef BB_TIME
+#ifdef CONFIG_TIME
 	APPLET(time, time_main, _BB_DIR_USR_BIN)
 #endif
 #ifdef CONFIG_TOUCH
diff -Naur busybox.orig/include/usage.h busybox/include/usage.h
--- busybox.orig/include/usage.h	Thu Nov 29 21:54:31 2001
+++ busybox/include/usage.h	Wed Dec  5 14:49:57 2001
@@ -1704,8 +1704,8 @@
 #define time_trivial_usage \
 	"[OPTION]... COMMAND [ARGS...]"
 #define time_full_usage \
-	"Runs the program COMMAND with arguments ARGS.  When COMMAND finishes,\n"
-	"COMMAND's resource usage information is displayed\n\n"
+	"Runs the program COMMAND with arguments ARGS.  When COMMAND finishes,\n" \
+	"COMMAND's resource usage information is displayed\n\n" \
 	"Options:\n" \
 	"\t-v\tDisplays verbose resource usage information."
 
diff -Naur busybox.orig/miscutils/Makefile busybox/miscutils/Makefile
--- busybox.orig/miscutils/Makefile	Wed Oct 24 07:35:52 2001
+++ busybox/miscutils/Makefile	Wed Dec  5 14:49:33 2001
@@ -33,6 +33,7 @@
 obj-$(CONFIG_MKTEMP)		+= mktemp.o
 obj-$(CONFIG_MT)		+= mt.o
 obj-$(CONFIG_READLINK)		+= readlink.o
+obj-$(CONFIG_TIME)		+= time.o
 obj-$(CONFIG_UPDATE)		+= update.o
 obj-$(CONFIG_WATCHDOG)		+= watchdog.o
 


More information about the busybox mailing list