crosstool-ng/kconfig
Jason T. Masker 10e1579799 scripts/crosstool-NG.sh.in: patch regex to work with BSD grep
BSD grep does not interpret a null alteration. It complains about an
empty sub-expression, e.g.:

$ grep --version && grep -E '^(# |)CT_' .config
grep (BSD grep) 2.5.1-FreeBSD
grep: empty (sub)expression

This patch replaces the null alteration with a zero or once quantifier
which works with both BSD & GNU grep.

$ grep --version && grep -E '^(# )?CT_' .config
grep (BSD grep) 2.5.1-FreeBSD
CT_CONFIGURE_has_xz=y
CT_CONFIGURE_has_svn=y
...
$ ggrep --version && ggrep -E '^(# )?CT_' .config
ggrep (GNU grep) 2.20
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see
<http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
CT_CONFIGURE_has_xz=y
CT_CONFIGURE_has_svn=y
...

Signed-off-by: Jason T. Masker <jason@masker.net>
Tested-by: Andreas Bießmann <andreas@biessmann.de>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2014-12-05 03:12:57 -08:00
..
lxdialog kconfig: update from linux-next 2011-05-08 14:14:40 +02:00
.gitignore repository: migrate old hg files over to git 2014-06-27 00:28:53 +02:00
check.sh kconfig: update from linux-next 2011-05-08 14:14:40 +02:00
conf.c kconfig: remove mis-leading messages 2011-05-12 19:46:23 +02:00
confdata.c kconfig: remove mis-leading messages 2011-05-12 19:46:23 +02:00
expr.c kconfig: update from linux-next 2011-05-08 14:14:40 +02:00
expr.h kconfig: update from linux-next 2011-05-08 14:14:40 +02:00
kconfig.mk scripts/crosstool-NG.sh.in: patch regex to work with BSD grep 2014-12-05 03:12:57 -08:00
lkc_proto.h kconfig: update from linux-next 2011-05-08 14:14:40 +02:00
lkc.h kconfig: update from linux-next 2011-05-08 14:14:40 +02:00
Makefile all: fix wildcard to work with make-4.x 2014-06-25 23:33:01 +02:00
mconf.c kconfig: remove mis-leading messages 2011-05-12 19:46:23 +02:00
menu.c kconfig: fix forward dependencies 2011-05-22 17:44:34 +02:00
nconf.c kconfig: add the nconf frontend 2011-05-12 19:45:30 +02:00
nconf.gui.c kconfig: add the nconf frontend 2011-05-12 19:45:30 +02:00
nconf.h kconfig: add the nconf frontend 2011-05-12 19:45:30 +02:00
symbol.c kconfig: do not warn on missing env variable 2011-05-08 14:57:09 +02:00
util.c kconfig: update from linux-next 2011-05-08 14:14:40 +02:00
zconf.gperf kconfig: add missing files 2012-01-15 01:04:26 +01:00
zconf.l kconfig: add missing files 2012-01-15 01:04:26 +01:00
zconf.y kconfig: add missing files 2012-01-15 01:04:26 +01:00