]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch by Drew Csillag for FreeBSD's sh, which doesn't automatically
authorGuido van Rossum <guido@python.org>
Mon, 19 Apr 1999 17:16:12 +0000 (17:16 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 19 Apr 1999 17:16:12 +0000 (17:16 +0000)
join \-terminated lines.

Modules/makesetup

index 0fefcfffc1f3c50b023ae6802c47e834c0735867..69028dd8688afd94be76b9de1bc4258b7d197248 100755 (executable)
@@ -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;;