diff options
Diffstat (limited to 'ship/build')
-rwxr-xr-x | ship/build | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |