mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
fix NL for Linux bash bug; special processing for -u options
This commit is contained in:
parent
ac56297421
commit
4a2698648e
1 changed files with 9 additions and 2 deletions
|
|
@ -76,8 +76,8 @@ case $makepre in
|
|||
esac
|
||||
|
||||
# Newline for sed i and a commands
|
||||
NL="\\
|
||||
"
|
||||
NL='\
|
||||
'
|
||||
|
||||
# Main loop
|
||||
for i in ${*-Setup}
|
||||
|
|
@ -120,8 +120,14 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
|||
cpps=
|
||||
libs=
|
||||
mods=
|
||||
skip=
|
||||
for arg in $line
|
||||
do
|
||||
case $skip in
|
||||
libs) libs="$libs $arg"; skip=; continue;;
|
||||
cpps) cpps="$cpps $arg"; skip=; continue;;
|
||||
srcs) srcs="$srcs $arg"; skip=; continue;;
|
||||
esac
|
||||
case $arg in
|
||||
-[IDUC]*) cpps="$cpps $arg";;
|
||||
-[A-Zl]*) libs="$libs $arg";;
|
||||
|
|
@ -133,6 +139,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
|
|||
\$*) libs="$libs $arg";;
|
||||
*.*) echo 1>&2 "bad word $arg in $line"
|
||||
exit 1;;
|
||||
-u) skip=libs; libs="$libs -u";;
|
||||
[a-zA-Z_]*) mods="$mods $arg";;
|
||||
*) echo 1>&2 "bad word $arg in $line"
|
||||
exit 1;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue