Mercurial > hg > toybox
changeset 1697:fe210acdc97d draft
Make egrep and fgrep build standalone.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 14 Feb 2015 14:59:30 -0600 |
parents | f18d0a08b471 |
children | 31475e814232 |
files | toys/posix/grep.c |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/posix/grep.c Sat Feb 14 14:54:36 2015 -0600 +++ b/toys/posix/grep.c Sat Feb 14 14:59:30 2015 -0600 @@ -5,8 +5,8 @@ * See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html USE_GREP(NEWTOY(grep, "ZzEFHabhinorsvwclqe*f*m#x[!wx][!EFw]", TOYFLAG_BIN)) -USE_GREP(OLDTOY(egrep, grep, TOYFLAG_BIN)) -USE_GREP(OLDTOY(fgrep, grep, TOYFLAG_BIN)) +USE_EGREP(OLDTOY(egrep, grep, TOYFLAG_BIN)) +USE_FGREP(OLDTOY(fgrep, grep, TOYFLAG_BIN)) config GREP bool "grep" @@ -36,6 +36,16 @@ output prefix (default: filename if checking more than 1 file) -H force filename -b byte offset of match -h hide filename -n line number of match + +config EGREP + bool + default y + depends on GREP + +config FGREP + bool + default y + depends on GREP */ #define FOR_grep