patch: remove out-of-file build machinery
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 22 Nov 2010 02:15:21 +0000 (03:15 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 22 Nov 2010 02:15:21 +0000 (03:15 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/Config.src
editors/Kbuild.src
include/applets.src.h
include/usage.src.h

index fc824ccd5ae6b2429d0f10c031b9b9928128e843..201ee6eb9bcad56cac8104d3adb8bc613ca661f9 100644 (file)
@@ -60,12 +60,6 @@ config ED
          Small, simple, evil. Part of SUSv3. If you're not already using
          this, you don't need it.
 
-config PATCH
-       bool "patch"
-       default y
-       help
-         Apply a unified diff formatted patch.
-
 config SED
        bool "sed"
        default y
index 98128064d71f821f08d4626de0e52a4df2ac9203..2f23ae12fa353ebb21c5985a0e75058e367d0a7e 100644 (file)
@@ -11,6 +11,5 @@ lib-$(CONFIG_AWK)       += awk.o
 lib-$(CONFIG_CMP)       += cmp.o
 lib-$(CONFIG_DIFF)      += diff.o
 lib-$(CONFIG_ED)        += ed.o
-lib-$(CONFIG_PATCH)     += patch.o
 lib-$(CONFIG_SED)       += sed.o
 lib-$(CONFIG_VI)        += vi.o
index 879dbf7602d473f74564045ccce4646150a64c6b..06b4fff35105a603269a513741e998257a29bf4d 100644 (file)
@@ -261,7 +261,6 @@ IF_OD(APPLET(od, _BB_DIR_USR_BIN, _BB_SUID_DROP))
 IF_OPENVT(APPLET(openvt, _BB_DIR_USR_BIN, _BB_SUID_DROP))
 //IF_PARSE(APPLET(parse, _BB_DIR_USR_BIN, _BB_SUID_DROP))
 IF_PASSWD(APPLET(passwd, _BB_DIR_USR_BIN, _BB_SUID_REQUIRE))
-IF_PATCH(APPLET(patch, _BB_DIR_USR_BIN, _BB_SUID_DROP))
 IF_PGREP(APPLET(pgrep, _BB_DIR_USR_BIN, _BB_SUID_DROP))
 IF_PIDOF(APPLET(pidof, _BB_DIR_BIN, _BB_SUID_DROP))
 IF_PING(APPLET(ping, _BB_DIR_BIN, _BB_SUID_MAYBE))
index 37b9d0747e1c3bba5d50679b119aacff905c9ef4..30fef2440f7e36ef07de9afb27cba26b16252aa2 100644 (file)
@@ -2817,29 +2817,6 @@ INSERT
      "\n       -m      Use MD5 encryption instead of DES" \
        )
 
-#define patch_trivial_usage \
-       "[OPTIONS] [ORIGFILE [PATCHFILE]]"
-#define patch_full_usage "\n\n" \
-       IF_LONG_OPTS( \
-       "       -p,--strip N            Strip N leading components from file names" \
-     "\n       -i,--input DIFF         Read DIFF instead of stdin" \
-     "\n       -R,--reverse            Reverse patch" \
-     "\n       -N,--forward            Ignore already applied patches" \
-     "\n       --dry-run               Don't actually change files" \
-     "\n       -E,--remove-empty-files Remove output files if they become empty" \
-       ) \
-       IF_NOT_LONG_OPTS( \
-       "       -p N    Strip N leading components from file names" \
-     "\n       -i DIFF Read DIFF instead of stdin" \
-     "\n       -R      Reverse patch" \
-     "\n       -N      Ignore already applied patches" \
-     "\n       -E      Remove output files if they become empty" \
-       )
-
-#define patch_example_usage \
-       "$ patch -p1 < example.diff\n" \
-       "$ patch -p0 -i example.diff"
-
 #define pgrep_trivial_usage \
        "[-flnovx] [-s SID|-P PPID|PATTERN]"
 #define pgrep_full_usage "\n\n" \