better handling of whitespace

This commit is contained in:
Chris PeBenito 2005-06-28 17:31:50 +00:00
parent 19db6ba5a9
commit cedae2e49e

View File

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