Skip to content

Commit ae84e8d

Browse files
committed
Patch by Drew Csillag for FreeBSD's sh, which doesn't automatically
join \-terminated lines.
1 parent a7379d9 commit ae84e8d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Modules/makesetup

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
103103
BASELIBS=
104104
while read line
105105
do
106+
# to handle backslashes for sh's that don't automatically
107+
# continue a read when the last char is a backslash
108+
while echo $line | grep '\\$' > /dev/null
109+
do
110+
read extraline
111+
line=`echo $line| sed s/.$//`$extraline
112+
done
113+
106114
# Output DEFS in reverse order so first definition overrides
107115
case $line in
108116
*=*) DEFS="$line$NL$DEFS"; continue;;

0 commit comments

Comments
 (0)