better handling of whitespace
This commit is contained in:
parent
19db6ba5a9
commit
cedae2e49e
@ -3,5 +3,6 @@
|
||||
# this file exists because this line is
|
||||
# too hard to escape correctly in a makefile
|
||||
|
||||
egrep -v '^[[:blank:]]*(\#.*)?$' $1 \
|
||||
| awk '{ print "define(`"$1"_conf'\'',`"$3"'\'')" }'
|
||||
if test -f $1; then
|
||||
awk -F = '/^[[:blank:]]*[[:alpha:]]+/{ gsub(/[[:blank:]]*/,"") ; print "define(`"$1"_conf'\'',`"$2"'\'')" }' $1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user