mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
Patch by Drew Csillag for FreeBSD's sh, which doesn't automatically
join \-terminated lines.
This commit is contained in:
parent
a7379d9a34
commit
ae84e8d0f6
1 changed files with 8 additions and 0 deletions
|
|
@ -103,6 +103,14 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
||||||
BASELIBS=
|
BASELIBS=
|
||||||
while read line
|
while read line
|
||||||
do
|
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
|
# Output DEFS in reverse order so first definition overrides
|
||||||
case $line in
|
case $line in
|
||||||
*=*) DEFS="$line$NL$DEFS"; continue;;
|
*=*) DEFS="$line$NL$DEFS"; continue;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue