Mercurial > hg > aboriginal
comparison sources/functions.sh @ 1517:a246e0b13639
Bug fix: DEBUG_PACKAGE shouldn't pollute NO_CLEANUP.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 15 Apr 2012 00:44:14 -0500 |
parents | ad5303b6d35a |
children | c3b91b70cc42 |
comparison
equal
deleted
inserted
replaced
1516:f19ce5e2ec02 | 1517:a246e0b13639 |
---|---|
84 # See http://people.redhat.com/drepper/no_static_linking.html for | 84 # See http://people.redhat.com/drepper/no_static_linking.html for |
85 # insane rant from the glibc maintainer about why he doesn't care. | 85 # insane rant from the glibc maintainer about why he doesn't care. |
86 is_in_list $1 $BUILD_STATIC && [ ! -z "$ARCH" ] && STATIC_FLAGS="--static" | 86 is_in_list $1 $BUILD_STATIC && [ ! -z "$ARCH" ] && STATIC_FLAGS="--static" |
87 | 87 |
88 OLDCPUS=$CPUS | 88 OLDCPUS=$CPUS |
89 is_in_list $1 $DEBUG_PACKAGE && CPUS=1 | 89 OLDNOCLEAN=$NO_CLEANUP |
90 is_in_list $1 $DEBUG_PACKAGE && CPUS=1 && NO_CLEANUP=1 | |
90 | 91 |
91 if [ -e "$SOURCES/sections/$1".build ] | 92 if [ -e "$SOURCES/sections/$1".build ] |
92 then | 93 then |
93 setupfor "$1" | 94 setupfor "$1" |
94 . "$SOURCES/sections/$1".build | 95 . "$SOURCES/sections/$1".build |
96 else | 97 else |
97 announce "$1" | 98 announce "$1" |
98 . "$SOURCES"/sections/"$1".sh | 99 . "$SOURCES"/sections/"$1".sh |
99 fi | 100 fi |
100 CPUS=$OLDCPUS | 101 CPUS=$OLDCPUS |
102 NO_CLEANUP=$OLDNOCLEAN | |
101 } | 103 } |
102 | 104 |
103 # Find appropriate miniconfig file | 105 # Find appropriate miniconfig file |
104 | 106 |
105 getconfig() | 107 getconfig() |