better handling of whitespace

This commit is contained in:
Chris PeBenito 2005-06-28 17:31:50 +00:00
parent 19db6ba5a9
commit cedae2e49e
1 changed files with 3 additions and 2 deletions

View File

@ -3,5 +3,6 @@
# this file exists because this line is # this file exists because this line is
# too hard to escape correctly in a makefile # too hard to escape correctly in a makefile
egrep -v '^[[:blank:]]*(\#.*)?$' $1 \ if test -f $1; then
| awk '{ print "define(`"$1"_conf'\'',`"$3"'\'')" }' awk -F = '/^[[:blank:]]*[[:alpha:]]+/{ gsub(/[[:blank:]]*/,"") ; print "define(`"$1"_conf'\'',`"$2"'\'')" }' $1
fi