Don't require undefine_macro's macro to be defined to a string.
authorlxoliva <lxoliva@559672b5-ba27-0410-b829-e8f1faed8b1b>
Thu, 19 Mar 2009 23:24:16 +0000 (23:24 +0000)
committerlxoliva <lxoliva@559672b5-ba27-0410-b829-e8f1faed8b1b>
Thu, 19 Mar 2009 23:24:16 +0000 (23:24 +0000)
git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@4787 559672b5-ba27-0410-b829-e8f1faed8b1b

deblob-2.6.28

index 6bee4bd5d1764144d059ef248ca5aeacdf3e1d48..9d0e4228cd10615b964eeaa960dfca2add945a0e 100755 (executable)
@@ -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
 }