summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley2005-05-11 23:12:49 +0000
committerRob Landley2005-05-11 23:12:49 +0000
commit2acfd7bd2640655138260e0661990e12a99c57d3 (patch)
treee162cc6fca7b67b684492c758a43fb9463782a7d /include
parentb662f0d58ba40cbbc1cca849fb6e8665688deb5e (diff)
downloadbusybox-2acfd7bd2640655138260e0661990e12a99c57d3.zip
busybox-2acfd7bd2640655138260e0661990e12a99c57d3.tar.gz
Small comm implementatin from Rob Sullivan. Needed to build perl.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h9
2 files changed, 12 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index bc5b36a..4ef5ed7 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -113,6 +113,9 @@
#ifdef CONFIG_CMP
APPLET(cmp, cmp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_COMM
+ APPLET(comm, comm_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_CP
APPLET(cp, cp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index c68ae2e..ce8d407 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -222,6 +222,15 @@
"\t\t for all differing bytes\n" \
"\t-s\tquiet mode - do not print"
+#define comm_trivial_usage \
+ "[-123] FILE1 FILE2"
+#define comm_full_usage \
+ "Compare files. Compares FILE1 to FILE2, or to stdin if - is specified.\n\n" \
+ "Options:\n" \
+ "\t-1\tSuppress lines unique to FILE1\n" \
+ "\t-2\tSuppress lines unique to FILE2\n" \
+ "\t-3\tSuppress lines common to both files"
+
#define cp_trivial_usage \
"[OPTION]... SOURCE DEST"
#define cp_full_usage \