X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/86df74051ed8804aab61a128d3135377d158867a..182be454d9028f166fcfb0f2c41104c59641a826:/tools/showbuildenv diff --git a/tools/showbuildenv b/tools/showbuildenv index 415c169d..f5b4b3f7 100755 --- a/tools/showbuildenv +++ b/tools/showbuildenv @@ -11,8 +11,9 @@ # environment. offset () { - sed -e 's/^/ /' + sed -e '/./s/^/ /' } + header () { echo echo $* @@ -28,7 +29,6 @@ done header Shell Variables: set | sort -d -t= | offset - case ${os} in Darwin) @@ -49,4 +49,7 @@ case ${os} in (pkg_info 2>/dev/null | offset) || true ;; + Linux) + header Linux distribution: + (lsb_release -a 2>&1 | offset) || true esac