mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
Add GITTAG constant
This commit is contained in:
parent
5e90f751d2
commit
e20a9e93b2
8
Jamroot
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user