X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f2ac699d39bce1406ba54ff6cf9046c954361411..b957327c2a4337dc2219ae3ea5b05de8bed38f8f:/tools/showbuildenv diff --git a/tools/showbuildenv b/tools/showbuildenv index 5eec6ee8..ce21a0e0 100755 --- a/tools/showbuildenv +++ b/tools/showbuildenv @@ -5,13 +5,10 @@ # build environment on machines they can't login on. It also provides # a history in the build logs that might be useful in catching # regressions. -# +# # This script should *only* report basic information about the build # environment, and only that necessary to reproduce the build # environment. -# -# FIXME: Document meaning of script's exit status, if any. -# It jumps through hoops with `|| true' despite not using `set -e'. offset () { sed -e '/./s/^/ /' "$@" @@ -63,7 +60,11 @@ case ${os} in cc -v 2>&1 | offset header Installed packages: + #### pkg(7) or pkg_info(1) might not always be available. (pkg info 2>/dev/null | offset) || true (pkg_info 2>/dev/null | offset) || true ;; esac + +# Temporary test. Does anything care if the exit status is non-zero? +exit 42