summaryrefslogtreecommitdiff
path: root/Build/source/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-06-06 22:21:33 +0000
committerKarl Berry <karl@freefriends.org>2019-06-06 22:21:33 +0000
commitb1f25da6362d2bb38aa5b1eaea73a4609b0c906b (patch)
tree799a16a4f0005dd1f676064f99caa6b5ab9d5a51 /Build/source/Build
parenta49413506f5b7b1cf775e17dc08cf373a9db023b (diff)
build-info.sh script to create Work/buildinfo.log
git-svn-id: svn://tug.org/texlive/trunk@51335 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/Build')
-rwxr-xr-xBuild/source/Build33
1 files changed, 27 insertions, 6 deletions
diff --git a/Build/source/Build b/Build/source/Build
index 3189b44167d..f71d515f70f 100755
--- a/Build/source/Build
+++ b/Build/source/Build
@@ -71,9 +71,6 @@ if test "x$1" = x--debug || test "x$1" = x-g; then
TL_BUILD_ENV="$c $cxx $objcxx $TL_BUILD_ENV"
fi
-# allow override of configure location.
-: ${TL_CONFIGURE=../configure}
-
# allow for changing the banner identification, e.g.,
# --with-banner-add='/SomeDistro'; see the build doc.
: ${TL_CONF_BANNER=}
@@ -91,6 +88,9 @@ fi
# allow override of xdvi toolkit, default to standard xaw.
: ${TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=xaw}
+# allow override of configure location.
+: ${TL_CONFIGURE=../configure}
+
# allow adding arbitrary other configure args, after all the others.
: ${TL_CONFIGURE_ARGS=}
@@ -109,12 +109,33 @@ cd $TL_WORKDIR || exit 1
# failure at either step.
{
echo "starting TeX Live build at `date`"
- echo "on `uname -a`"
- echo "in `pwd`"
- echo "$0 $*"
+ echo "uname: `uname -a`"
+ test -s /etc/issue && echo "/etc/issue: `sed 1q /etc/issue`"
+ echo "pwd: `pwd`"
+ echo "cmdline: $0 $*"
echo
env | sort >buildenv.log
#
+ # Export the interesting TL_* variables that might be set,
+ # so they can be logged by build-info.
+ TL_BUILD_COMMAND_LINE="$0 $*"; export TL_BUILD_COMMAND_LINE
+ test -z "$TL_BUILD_ENV" || export TL_BUILD_ENV
+ test -z "$TL_COMPILER_GFLAGS" || export TL_COMPILER_GFLAGS
+ test -z "$TL_CONF_BANNER" || export TL_CONF_BANNER
+ test -z "$TL_CONF_LARGEFILE" || export TL_CONF_LARGEFILE
+ test -z "$TL_CONF_MISSING" || export TL_CONF_MISSING
+ test -z "$TL_CONF_SHARED" || export TL_CONF_SHARED
+ test -z "$TL_CONF_XDVI_TOOLKIT" || export TL_CONF_XDVI_TOOLKIT
+ test -z "$TL_CONFIGURE" || export TL_CONFIGURE
+ test -z "$TL_CONFIGURE_ARGS" || export TL_CONFIGURE_ARGS
+ test -z "$TL_INSTALL_DEST" || export TL_INSTALL_DEST
+ test -z "$TL_MAKE" || export TL_MAKE
+ test -z "$TL_MAKE_FLAGS" || export TL_MAKE_FLAGS
+ test -z "$TL_MAKE_VERBOSE" || export TL_MAKE_VERBOSE
+ test -z "$TL_POSTCONFIGURE" || export TL_POSTCONFIGURE
+ test -z "$TL_TARGET" || export TL_TARGET
+ test -z "$TL_WORKDIR" || export TL_WORKDIR
+ #
set -vx # show the configure and make commands in the log.
eval $TL_BUILD_ENV $TL_CONFIGURE \