summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-19 17:16:12 (GMT)
committerGuido van Rossum <guido@python.org>1999-04-19 17:16:12 (GMT)
commitae84e8d0f689aff75e8f5e1404a100405bba89aa (patch)
treec2fd9d2ca04244ad3e4f6aa36dc0456afadc8347 /Modules
parenta7379d9a34ab34a2424e334d4617de206021b0c3 (diff)
downloadcpython-ae84e8d0f689aff75e8f5e1404a100405bba89aa.zip
cpython-ae84e8d0f689aff75e8f5e1404a100405bba89aa.tar.gz
cpython-ae84e8d0f689aff75e8f5e1404a100405bba89aa.tar.bz2
Patch by Drew Csillag for FreeBSD's sh, which doesn't automatically
join \-terminated lines.
Diffstat (limited to 'Modules')
-rwxr-xr-xModules/makesetup8
1 files changed, 8 insertions, 0 deletions
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;;