X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/86df74051ed8804aab61a128d3135377d158867a..4d6435dbde12837bdf4b4d594e0440392df4b9d3:/tools/showbuildenv?ds=sidebyside diff --git a/tools/showbuildenv b/tools/showbuildenv index 415c169d..ac34d076 100755 --- a/tools/showbuildenv +++ b/tools/showbuildenv @@ -9,10 +9,14 @@ # 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/^/ /' + sed -e '/./s/^/ /' } + header () { echo echo $* @@ -28,7 +32,6 @@ done header Shell Variables: set | sort -d -t= | offset - case ${os} in Darwin) @@ -49,4 +52,7 @@ case ${os} in (pkg_info 2>/dev/null | offset) || true ;; + Linux) + header Linux distribution: + (lsb_release -a 2>&1 | offset) || true esac