From ae84e8d0f689aff75e8f5e1404a100405bba89aa Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 19 Apr 1999 17:16:12 +0000 Subject: Patch by Drew Csillag for FreeBSD's sh, which doesn't automatically join \-terminated lines. --- Modules/makesetup | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Modules/makesetup b/Modules/makesetup index 0fefcff..69028dd 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;; -- cgit v0.12