From: Guido van Rossum Date: Mon, 19 Apr 1999 17:16:12 +0000 (+0000) Subject: Patch by Drew Csillag for FreeBSD's sh, which doesn't automatically X-Git-Tag: v1.6a1~1588 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae84e8d0f689aff75e8f5e1404a100405bba89aa;p=thirdparty%2FPython%2Fcpython.git Patch by Drew Csillag for FreeBSD's sh, which doesn't automatically join \-terminated lines. --- diff --git a/Modules/makesetup b/Modules/makesetup index 0fefcfffc1f3..69028dd8688a 100755 --- a/Modules/makesetup +++ b/Modules/makesetup @@ -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;;