Patch by Drew Csillag for FreeBSD's sh, which doesn't automatically
join \-terminated lines.
This commit is contained in:
parent
a7379d9a34
commit
ae84e8d0f6
|
@ -103,6 +103,14 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
||||||
BASELIBS=
|
BASELIBS=
|
||||||
while read line
|
while read line
|
||||||
do
|
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
|
# Output DEFS in reverse order so first definition overrides
|
||||||
case $line in
|
case $line in
|
||||||
*=*) DEFS="$line$NL$DEFS"; continue;;
|
*=*) DEFS="$line$NL$DEFS"; continue;;
|
||||||
|
|
Loading…
Reference in New Issue