diff options
author | Guido van Rossum <guido@python.org> | 1995-06-14 22:52:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-06-14 22:52:06 (GMT) |
commit | 4a2698648e955c0b497dc07cd34d6bcf8a89d994 (patch) | |
tree | 71ccb3df2ebcc75f9a720e459df9bf4adad7988c /Modules/makesetup | |
parent | ac56297421437d329494223651de2465301d7dc4 (diff) | |
download | cpython-4a2698648e955c0b497dc07cd34d6bcf8a89d994.zip cpython-4a2698648e955c0b497dc07cd34d6bcf8a89d994.tar.gz cpython-4a2698648e955c0b497dc07cd34d6bcf8a89d994.tar.bz2 |
fix NL for Linux bash bug; special processing for -u options
Diffstat (limited to 'Modules/makesetup')
-rwxr-xr-x | Modules/makesetup | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Modules/makesetup b/Modules/makesetup index 1feae60..2f4cf5f 100755 --- a/Modules/makesetup +++ b/Modules/makesetup @@ -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;; |