From 2acfd7bd2640655138260e0661990e12a99c57d3 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 11 May 2005 23:12:49 +0000 Subject: Small comm implementatin from Rob Sullivan. Needed to build perl. --- include/applets.h | 3 +++ include/usage.h | 9 +++++++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index bc5b36ae3..4ef5ed77c 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 c68ae2e0d..ce8d407e3 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 \ -- cgit v1.2.3