diff options
author | Kenneth Heafield <github@kheafield.com> | 2011-11-25 18:41:49 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2011-11-25 18:41:49 +0400 |
commit | e20a9e93b21d5199926335d9f44eabe86048169d (patch) | |
tree | 1c551802e4faeb387ed7f8d9a3be9b39ce4eb1c6 /Jamroot | |
parent | 5e90f751d2680955f602d6b8122ff727b73b9fc2 (diff) |
Add GITTAG constant
Diffstat (limited to 'Jamroot')
-rw-r--r-- | Jamroot | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -140,10 +140,14 @@ build-project moses-chart-cmd/src ; install-location = [ option.get "install" : $(TOP)/dist ] ; if [ option.get "git" : : "yes" ] { - install-tag = [ _shell "git rev-parse --verify HEAD |head -c 7" ] ; - install-location = $(install-location).$(install-tag) ; + local revision = [ _shell "git rev-parse --verify HEAD |head -c 7" ] ; + constant GITTAG : "."$(revision) ; +} else { + constant GITTAG : "" ; } +install-location = $(install-location)$(GITTAG) ; + install dist : lm//query lm//build_binary |