From a504344cee30af231de330d7311255a92ed2d7a4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 2 Aug 2010 18:25:47 +0000 Subject: [PATCH] Bug fix: process undefined RHEL_MAJOR / RHEL_MINOR macros properly. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1909 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index 1eb59a1e2..2dd960927 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -69,7 +69,10 @@ function evaluate(stmnt) { gsub("defined\\(BACKPORT_LINUX_WORKQUEUE_TO_2_6_19\\)", "0", stmnt) if (RHEL_MAJOR == "") + { gsub("defined\\(RHEL_MAJOR\\)", "0", stmnt) + gsub("RHEL_MAJOR", "", stmnt) + } else { gsub("defined\\(RHEL_MAJOR\\)", "1", stmnt) @@ -77,7 +80,10 @@ function evaluate(stmnt) { } if (RHEL_MINOR == "") + { gsub("defined\\(RHEL_MINOR\\)", "0", stmnt) + gsub("RHEL_MINOR", "0", stmnt) + } else { gsub("defined\\(RHEL_MINOR\\)", "1", stmnt)