From: Denys Vlasenko Date: Wed, 9 Feb 2011 00:33:41 +0000 (+0100) Subject: scripts/mkconfigs: don't use invalid basic regexp X-Git-Tag: 1_19_0~330 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7212a4ce5aa3570f7195c48335f0280a0fd4383;p=oweals%2Fbusybox.git scripts/mkconfigs: don't use invalid basic regexp \? are GNU extension and thus are non-standard Signed-off-by: Denys Vlasenko --- diff --git a/scripts/mkconfigs b/scripts/mkconfigs index 47ac53330..7488d294e 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 ";"