]> diplodocus.org Git - nmh/blobdiff - tools/showbuildenv
Generalized condition for support of parameter value tests.
[nmh] / tools / showbuildenv
index 10c29bb4a4d74e78cd3e16ad702a34c062d4507e..2338bc6ce59958538ee113cd5e9a8e3a42f954af 100755 (executable)
@@ -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,11 +60,8 @@ 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
        ;;
-
-    Linux)
-        header Linux distribution:
-        (lsb_release -a 2>&1 | offset) || true
 esac