mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 13:41:27 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user