summaryrefslogtreecommitdiffstats
path: root/ship/build
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-11-19 08:35:51 +0100
committermakefu <github@syntax-fehler.de>2013-11-19 08:35:51 +0100
commit5788b95fe7834d3049df9de1009f3d8dbc34fea2 (patch)
tree76675a9579c7c5e269825bfa73d29fe5256b8afb /ship/build
parentc15a8d15e910a39a641b21df08e13325a0e29293 (diff)
parent6f956cfe65ee00871bc9be19b2acadabb6638a69 (diff)
Merge branch 'master' of github.com:krebscode/painload
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