]> diplodocus.org Git - nmh/blobdiff - tools/showbuildenv
A-ha! automake has support for tests expected to fail; use that.
[nmh] / tools / showbuildenv
index e12bfe35a3f175784462579524d3ef41326863d0..ac34d076d602de884b30204d66f955dad165c18d 100755 (executable)
@@ -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 $*