# 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 $*
header Shell Variables:
set | sort -d -t= | offset
-
case ${os} in
Darwin)
(pkg_info 2>/dev/null | offset) || true
;;
+ Linux)
+ header Linux distribution:
+ (lsb_release -a 2>&1 | offset) || true
esac