Add GITTAG constant

This commit is contained in:
Kenneth Heafield 2011-11-25 14:41:49 +00:00
parent 5e90f751d2
commit e20a9e93b2

View File

@ -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