Minor change: allow patches settings to be derived from other flags, e.g. BAR_WINTITLEACTIONS_PATCH

pull/10/merge
bakkeby 4 years ago
parent eda33b539e
commit 2ec655105d

@ -151,9 +151,13 @@ BEGIN {
while (( getline line < (DIRECTORY"/patches.h") ) > 0 ) {
split(line,f)
if ( f[1] ~ /^#define$/ ) {
patches[f[2]] = f[3]
if ( f[3] == 0 || f[3] == 1 ) {
patches[f[2]] = f[3]
} else {
patches[f[2]] = istrue(f)
}
if (DEBUG) {
print "Found " f[2] " = " f[3] > "/dev/stderr"
print "Found " f[2] " = " patches[f[2]] > "/dev/stderr"
}
}
}

Loading…
Cancel
Save