From: lxoliva Date: Thu, 19 Mar 2009 23:24:16 +0000 (+0000) Subject: Don't require undefine_macro's macro to be defined to a string. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=3395122098625c9e503c6e1c89a76202c08f192e;p=releases.git Don't require undefine_macro's macro to be defined to a string. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@4787 559672b5-ba27-0410-b829-e8f1faed8b1b --- diff --git a/deblob-2.6.28 b/deblob-2.6.28 index 6bee4bd5d17..9d0e4228cd1 100755 --- a/deblob-2.6.28 +++ b/deblob-2.6.28 @@ -196,9 +196,9 @@ undefine_macro () { macro=$1 repl=$2 msg=$3; shift 3 for f in "$@"; do clean_sed " - s,^#define $macro \"[^\"]*\",/*(DEBLOBBED)*/,; - s,$macro,$repl,g" \ - "$f" "$msg" + s,^#define $macro .*\$,/*(DEBLOBBED)*/,; + s,$macro,$repl,g; +" "$f" "$msg" done }