Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2011-11-25 18:41:49 +0400
committerKenneth Heafield <github@kheafield.com>2011-11-25 18:41:49 +0400
commite20a9e93b21d5199926335d9f44eabe86048169d (patch)
tree1c551802e4faeb387ed7f8d9a3be9b39ce4eb1c6 /Jamroot
parent5e90f751d2680955f602d6b8122ff727b73b9fc2 (diff)
Add GITTAG constant
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot8
1 files changed, 6 insertions, 2 deletions
diff --git a/Jamroot b/Jamroot
index ff6dfb556..b8180c132 100644
--- a/Jamroot
+++ b/Jamroot
@@ -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