diff options
author | Guido van Rossum <guido@python.org> | 1999-04-19 17:16:12 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-04-19 17:16:12 (GMT) |
commit | ae84e8d0f689aff75e8f5e1404a100405bba89aa (patch) | |
tree | c2fd9d2ca04244ad3e4f6aa36dc0456afadc8347 | |
parent | a7379d9a34ab34a2424e334d4617de206021b0c3 (diff) | |
download | cpython-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.
-rwxr-xr-x | Modules/makesetup | 8 |
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;; |