Bug fix: undefined macro's, e.g. RHEL_RELEASE_CODE, expand to the empty
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sat, 18 Apr 2009 09:12:39 +0000 (09:12 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sat, 18 Apr 2009 09:12:39 +0000 (09:12 +0000)
string. The substitution for RHEL_RELEASE_CODE when it was not defined
was missing.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@788 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scripts/specialize-patch

index c213b49..23e49f6 100755 (executable)
@@ -77,7 +77,10 @@ function evaluate(stmnt) {
   }
 
   if (RHEL_MAJOR == "" || RHEL_MINOR == "")
+  {
     gsub("defined\\(RHEL_RELEASE_CODE\\)", "0", stmnt)
+    gsub("RHEL_RELEASE_CODE", "", stmnt)
+  }
   else
   {
     gsub("defined\\(RHEL_RELEASE_CODE\\)", "1", stmnt)