[BusyBox-cvs] busybox/include applets.h,1.97,1.98 usage.h,1.152,1.153

Glenn McGrath bug1 at busybox.net
Sun Jun 22 15:32:45 UTC 2003


Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv5323/include

Modified Files:
	applets.h usage.h 
Log Message:
New applet: patch, applies a unified diff


Index: applets.h
===================================================================
RCS file: /var/cvs/busybox/include/applets.h,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- applets.h	10 Jun 2003 17:22:46 -0000	1.97
+++ applets.h	22 Jun 2003 15:32:41 -0000	1.98
@@ -421,6 +421,9 @@
 #ifdef CONFIG_PASSWD
 	APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
 #endif
+#ifdef CONFIG_PATCH
+	APPLET(patch, patch_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
 #ifdef CONFIG_PIDFILEHACK
 	APPLET(pidfilehack, pidfilehack_main, _BB_DIR_BIN, _BB_SUID_NEVER)
 #endif

Index: usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -d -r1.152 -r1.153
--- usage.h	21 Jun 2003 20:03:06 -0000	1.152
+++ usage.h	22 Jun 2003 15:32:41 -0000	1.153
@@ -1696,6 +1696,13 @@
 	"\t-l\tLocks (disables) the specified user account.\n" \
 	"\t-u\tUnlocks (re-enables) the specified user account."
 
+#define patch_trivial_usage \
+	"[-p<num>]"
+#define patch_full_usage \
+	"[-p<num>]"
+#define patch_example_usage \
+	"$ patch -p1 <example.diff"
+
 #define pidfilehack_trivial_usage \
 	"[daemon.pid] [daemon]"
 #define pidfilehack_full_usage \



More information about the busybox-cvs mailing list