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
This commit is contained in:
Bart Van Assche
2010-08-02 18:25:47 +00:00
parent 95000212ed
commit a504344cee

View File

@@ -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)