@@ -110,10 +110,14 @@ SAGE_SPKG_FINALIZE([$pkgname], [$pkgtype], [$SPKG_SOURCE], [$SPKG_TREE_VAR])"
110
110
echo ' changequote(>>>`<<<, >>>' " '" ' <<<)dnl' >> $a
111
111
done
112
112
113
- for pkgname in $( sage-package list --has-file bootstrap) ; do
114
- (cd build/pkgs/$pkgname && ./bootstrap) || exit 1
113
+ for pkgname in $( sage-package list --has-file bootstrap " $@ " ) ; do
114
+ (cd build/pkgs/$pkgname && if [ -x bootstrap ] ; then ./bootstrap; else echo >&2 " bootstrap: $LINENO : Nothing to do for $pkgname " ; fi ) || exit 1
115
115
done
116
116
117
+ if [ $# != 0 ]; then
118
+ return
119
+ fi
120
+
117
121
# Default to no filter if "-q" was not passed.
118
122
QUIET_SED_FILTER=" "
119
123
if [ " ${BOOTSTRAP_QUIET} " = " yes" ]; then
@@ -126,7 +130,6 @@ SAGE_SPKG_FINALIZE([$pkgname], [$pkgtype], [$SPKG_SOURCE], [$SPKG_TREE_VAR])"
126
130
# stdout alone. Basically we swap the two descriptors using a
127
131
# third, filter, and then swap them back.
128
132
./bootstrap-conda && \
129
- src/doc/bootstrap && \
130
133
aclocal -I m4 && \
131
134
automake --add-missing --copy build/make/Makefile-auto 3>&1 1>&2 2>&3 \
132
135
| sed " ${QUIET_SED_FILTER} " 3>&1 1>&2 2>&3 && \
@@ -236,7 +239,7 @@ save () {
236
239
237
240
238
241
usage () {
239
- echo >&2 " Usage: $0 [-d|-D|-s] [-u <URL>] [-h] [-q]"
242
+ echo >&2 " Usage: $0 [-d|-D|-s] [-u <URL>] [-h] [-q] [SPKG...] "
240
243
echo >&2 " "
241
244
echo >&2 " Options:"
242
245
echo >&2 " -d fall back to downloading (released versions only)"
269
272
? ) usage; exit 2;;
270
273
esac
271
274
done
275
+ shift $(( $OPTIND - 1 ))
272
276
export BOOTSTRAP_QUIET
273
277
CONFBALL=" upstream/configure-$CONFVERSION .tar.gz"
274
278
@@ -278,14 +282,16 @@ if [ $DOWNLOAD$SAVE = yesyes ]; then
278
282
exit 2
279
283
fi
280
284
281
- # Start cleanly (it's not a problem if this fails)
285
+ # Start cleanly when a full bootstrap is happening (it's not a problem if this fails)
282
286
# POSIX supports two separate incompatible formats for the MAKEFLAGS
283
287
# variable, so instead of guessing, we simply define our own variable
284
288
# to optionally pass an "-s" (silent) flag to Make.
285
- MAKE_SILENT=" "
286
- [ " ${BOOTSTRAP_QUIET} " = " yes" ] && MAKE_SILENT=" -s"
287
- $MAKE ${MAKE_SILENT} bootstrap-clean 2> /dev/null
288
- mkdir config 2> /dev/null
289
+ if [ $# = 0 ]; then
290
+ MAKE_SILENT=" "
291
+ [ " ${BOOTSTRAP_QUIET} " = " yes" ] && MAKE_SILENT=" -s"
292
+ $MAKE ${MAKE_SILENT} bootstrap-clean 2> /dev/null
293
+ fi
294
+ mkdir -p config 2> /dev/null
289
295
290
296
if [ $ALWAYSDOWNLOAD = yes ]; then
291
297
if [ -n " $CONFTARBALL_URL " ]; then
@@ -302,7 +308,7 @@ if [ $ALWAYSDOWNLOAD = yes ]; then
302
308
bootstrap_download || exit $?
303
309
fi
304
310
else
305
- bootstrap
311
+ bootstrap " $@ "
306
312
fi
307
313
308
314
if [ $SAVE = yes ]; then
0 commit comments