24
24
25
25
# Set SAGE_ROOT to the path to this file and then cd into it
26
26
SAGE_ROOT=" $( cd " $( dirname " $0 " ) " && pwd -P) "
27
+ export SAGE_ROOT
27
28
cd " $SAGE_ROOT "
28
29
29
30
export PATH=" $SAGE_ROOT /build/bin:$PATH "
@@ -94,15 +95,9 @@ SAGE_SPKG_ENABLE([$pkgname], [$pkgtype])"
94
95
fi
95
96
;;
96
97
esac
97
- for infile in " $pkgdir " /src/* .m4; do
98
- if [ -f " $infile " ]; then
99
- outfile=" $pkgdir /src/$( basename $infile .m4) "
100
- if [ " ${BOOTSTRAP_QUIET} " = " no" ]; then
101
- echo " $0 : installing $outfile "
102
- fi
103
- m4 " $infile " > " $outfile "
104
- fi
105
- done
98
+ if [ -x " $pkgdir /bootstrap" ]; then
99
+ (cd $pkgdir && ./bootstrap || exit 1)
100
+ fi
106
101
done
107
102
for filename in $( find build/pkgs -type f -name spkg-configure.m4 | sort) ; do
108
103
pkgname=" $( echo $filename | cut -d/ -f3) "
@@ -123,8 +118,6 @@ SAGE_SPKG_CONFIGURE_$(echo ${pkgname} | tr '[a-z]' '[A-Z]')"
123
118
# ONLY stderr, and to re-output the results back to stderr leaving
124
119
# stdout alone. Basically we swap the two descriptors using a
125
120
# third, filter, and then swap them back.
126
- BOOTSTRAP_QUIET=" ${BOOTSTRAP_QUIET} " \
127
- SAGE_ROOT=" $SAGE_ROOT " \
128
121
src/doc/bootstrap && \
129
122
install_config_rpath && \
130
123
aclocal -I m4 && \
249
242
? ) usage; exit 2;;
250
243
esac
251
244
done
245
+ export BOOTSTRAP_QUIET
252
246
CONFBALL=" upstream/configure-$CONFVERSION .tar.gz"
253
247
254
248
if [ $DOWNLOAD$SAVE = yesyes ]; then
0 commit comments