From b1f25da6362d2bb38aa5b1eaea73a4609b0c906b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 6 Jun 2019 22:21:33 +0000 Subject: build-info.sh script to create Work/buildinfo.log git-svn-id: svn://tug.org/texlive/trunk@51335 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/doc/build-info.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 Build/source/doc/build-info.sh (limited to 'Build/source/doc') diff --git a/Build/source/doc/build-info.sh b/Build/source/doc/build-info.sh new file mode 100755 index 00000000000..b67875419e5 --- /dev/null +++ b/Build/source/doc/build-info.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# $Id$ +# Report build environment; run from top-level Makefile so any make +# overrides will be taken into account. + +printf 'uname\t"%s"\n' "`uname -a`" +test -s /etc/issue \ +&& printf 'issue\t"%s"\n' "`sed 1q /etc/issue`" +# bsd doesn't have /etc/issue, but seems sufficiently identified by uname. + +printf 'MAKE-v\t"%s"\n' "`${MAKE-make} -v 2>&1 | sed 1q`" +# BSD make does not give version info with -v, but the +# first line of the usage message is a sort of identifier. + +# our configure defaults to using gcc and g++. +printf 'CC-v\t"%s"\n' "`${CC-gcc} --version 2>&1 | sed 1q`" +printf 'CXX-v\t"%s"\n' "`${CXX-g++} --version 2>&1 | sed 1q`" + +# dump whole environment to be sure we get anything relevant, +# although it will surely include many irrelevancies. +env | sort -f + +# the whole configure line and more. +test -s config.status \ +&& (printf 'CONFIG_STATUS\n'; ./config.status --version) + +exit 0 -- cgit v1.2.3