From: lxoliva Date: Mon, 19 May 2008 00:41:15 +0000 (+0000) Subject: Fix quoting of parentheses in sed commands. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b5e5572c468d039c38fcd27fe1ee7906c3864f24;p=releases.git Fix quoting of parentheses in sed commands. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@3557 559672b5-ba27-0410-b829-e8f1faed8b1b --- diff --git a/deblob-2.6.23 b/deblob-2.6.23 index 828828e7881..8e9efe19a4b 100755 --- a/deblob-2.6.23 +++ b/deblob-2.6.23 @@ -84,7 +84,7 @@ function clean_blob { function clean_kconfig { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 - sed "/^config \($2\)\$/{p;i\ + sed "/^config \\($2\\)\$/{p;i\ depends on NONFREE d;}" $1 > $1.deblob check_changed $1 @@ -93,9 +93,9 @@ d;}" $1 > $1.deblob function clean_mk { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva - # sed -i "/($1)/d" $2 + # sed -i "/\\($1\\)/d" $2 # check_changed $2 - if sed -n "/($1)/p" $2 | grep . > /dev/null; then + if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else echo $2 does not contain matches for $1 diff --git a/deblob-2.6.24 b/deblob-2.6.24 index 9fb289e1829..9eef94de5c5 100755 --- a/deblob-2.6.24 +++ b/deblob-2.6.24 @@ -84,7 +84,7 @@ function clean_blob { function clean_kconfig { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 - sed "/^config \($2\)\$/{p;i\ + sed "/^config \\($2\\)\$/{p;i\ depends on NONFREE d;}" $1 > $1.deblob check_changed $1 @@ -93,9 +93,9 @@ d;}" $1 > $1.deblob function clean_mk { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva - # sed -i "/($1)/d" $2 + # sed -i "/\\($1\\)/d" $2 # check_changed $2 - if sed -n "/($1)/p" $2 | grep . > /dev/null; then + if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else echo $2 does not contain matches for $1 diff --git a/deblob-2.6.25 b/deblob-2.6.25 index 751d4db4fd0..173a73a9550 100755 --- a/deblob-2.6.25 +++ b/deblob-2.6.25 @@ -84,7 +84,7 @@ function clean_blob { function clean_kconfig { #$1 = filename $2 = things to remove echo Marking config $2 as depending on NONFREE in $1 - sed "/^config \($2\)\$/{p;i\ + sed "/^config \\($2\\)\$/{p;i\ depends on NONFREE d;}" $1 > $1.deblob check_changed $1 @@ -93,9 +93,9 @@ d;}" $1 > $1.deblob function clean_mk { #$1 = config $2 = Makefile name # We don't clean up Makefiles any more --lxoliva - # sed -i "/($1)/d" $2 + # sed -i "/\\($1\\)/d" $2 # check_changed $2 - if sed -n "/($1)/p" $2 | grep . > /dev/null; then + if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then : else echo $2 does not contain matches for $1