fix another nonportable grep usage in scripts
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 16 Apr 2011 17:45:33 +0000 (19:45 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 16 Apr 2011 17:45:33 +0000 (19:45 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/mkconfigs

index 7488d29..db94fcc 100755 (executable)
@@ -63,7 +63,7 @@ echo "\
  */
 static const char bbconfig_config_bz2[] ALIGN1 = {"
 
-grep '^#\? \?CONFIG_' "$config" \
+grep -e '^# CONFIG_' -e '^CONFIG_' "$config" \
 | bzip2 -1 | dd bs=2 skip=1 2>/dev/null \
 | od -v -t x1 \
 | sed -e 's/^[^ ]*//' \