summaryrefslogtreecommitdiffstats
path: root/ship/build
diff options
context:
space:
mode:
Diffstat (limited to 'ship/build')
-rwxr-xr-xship/build8
1 files changed, 5 insertions, 3 deletions
diff --git a/ship/build b/ship/build
index bd26482d..5863e325 100755
--- a/ship/build
+++ b/ship/build
@@ -44,8 +44,8 @@ EOF
build_info() { cat<<EOF
$1a\\
# this file was generated by //ship/build\\
-# date: $(date -u --rfc-3339=s)\\
-# version: $(git rev-parse HEAD)
+# build date: $(date -u --rfc-3339=s)\\
+# git describe: $(git describe --always --dirty --abbrev=0)
EOF
}
@@ -181,4 +181,6 @@ buildcache_add() {
### main invocation
###
-build "$@"
+if echo "$0" | grep -q '^\(.*/\)\?build$'; then
+ build "$@"
+fi