[git commit master 1/1] scripts/mkconfigs: don't use invalid basic regexp

Denys Vlasenko vda.linux at googlemail.com
Wed Feb 9 00:33:41 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=e7212a4ce5aa3570f7195c48335f0280a0fd4383
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

\? are GNU extension and thus are non-standard

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 scripts/mkconfigs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/mkconfigs b/scripts/mkconfigs
index 47ac533..7488d29 100755
--- a/scripts/mkconfigs
+++ b/scripts/mkconfigs
@@ -42,7 +42,7 @@ echo "\
  */
 static const char bbconfig_config[] ALIGN1 ="
 
-grep '^#\? \?CONFIG_' "$config" \
+grep -e '^# CONFIG_' -e '^CONFIG_' "$config" \
 | sed -e 's/\"/\\\"/g' -e 's/^/"/' -e 's/$/\\n"/'
 
 echo ";"
-- 
1.7.3.4



More information about the busybox-cvs mailing list