Patch by Drew Csillag for FreeBSD's sh, which doesn't automatically

join \-terminated lines.
This commit is contained in:
Guido van Rossum 1999-04-19 17:16:12 +00:00
parent a7379d9a34
commit ae84e8d0f6
1 changed files with 8 additions and 0 deletions

View File

@ -103,6 +103,14 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
BASELIBS=
while read line
do
# to handle backslashes for sh's that don't automatically
# continue a read when the last char is a backslash
while echo $line | grep '\\$' > /dev/null
do
read extraline
line=`echo $line| sed s/.$//`$extraline
done
# Output DEFS in reverse order so first definition overrides
case $line in
*=*) DEFS="$line$NL$DEFS"; continue;;