[git commit] fix another nonportable grep usage in scripts

Denys Vlasenko vda.linux at googlemail.com
Sat Apr 16 17:45:33 UTC 2011


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

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 7488d29..db94fcc 100755
--- a/scripts/mkconfigs
+++ b/scripts/mkconfigs
@@ -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/^[^ ]*//' \
-- 
1.7.3.4



More information about the busybox-cvs mailing list