]> diplodocus.org Git - nmh/commitdiff
showbuildenv: Add comment describing exit-status convention.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Dec 2016 14:51:06 +0000 (14:51 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Dec 2016 14:51:06 +0000 (14:51 +0000)
It helps explain why some commands are `... || true' despite no `set -e'
being in effect.

tools/showbuildenv

index 2338bc6ce59958538ee113cd5e9a8e3a42f954af..81f278e86bd257b0a951c56738aa9616ac3fb926 100755 (executable)
@@ -9,6 +9,10 @@
 # This script should *only* report basic information about the build
 # environment, and only that necessary to reproduce the build
 # environment.
 # This script should *only* report basic information about the build
 # environment, and only that necessary to reproduce the build
 # environment.
+#
+# The script's exit status must be zero if all went acceptably well as
+# buildbot checks for this and marks the `environment' stage as failed
+# otherwise.
 
 offset () {
     sed -e '/./s/^/    /' "$@"
 
 offset () {
     sed -e '/./s/^/    /' "$@"