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 19:33:46 +0400
committerKenneth Heafield <github@kheafield.com>2011-11-25 19:33:46 +0400
commit8100d587c7b282943ad3ab3798e665db55d14243 (patch)
tree240efddc05b059510091a1812388ec82dfd97ac7 /scripts/Jamfile
parent67c79de6f9b17af23353d930ac97b98ef10749c2 (diff)
Replace scripts build system.
Diffstat (limited to 'scripts/Jamfile')
-rw-r--r--scripts/Jamfile32
1 files changed, 28 insertions, 4 deletions
diff --git a/scripts/Jamfile b/scripts/Jamfile
index 72bf0402e..c20827bd8 100644
--- a/scripts/Jamfile
+++ b/scripts/Jamfile
@@ -1,14 +1,38 @@
+#MOSES SCRIPTS INSTRUCTIONS
+#
+#--bindir=/path/to/bindir where GIZA++ binaries live
+#
+#--install=/path/to/install to set a path to install (default dist)
+#--git appends the git revision to the install directory
+#
+#--with-boost=/path/to/boost to specify a non-standard Boost installation
+#
+#See also: bjam --help one level up.
+
import option ;
build-project training ;
location = [ option.get "install" : $(TOP)/scripts/dist ] ;
+location = $(location)$(GITTAG) ;
-constant BINDIR : [ option.get "bindir" ] ;
-
-if ! $(BINDIR) {
- exit "Pass --bindir=/path/to/bindir to indicate where GIZA++, snt2cooc.out, and mkcls live." : 1 ;
+bindir = [ option.get "bindir" ] ;
+if ! $(bindir) {
+ echo "Pass --bindir=/path/to/bindir" ;
+ echo "It should contain GIZA++, snt2cooc.out, and mkcls." ;
+ echo "These are available from http://www.fjoch.com/GIZA++.html and" ;
+ echo "http://www-i6.informatik.rwth-aachen.de/Colleagues/och/software/mkcls.html ." ;
+ exit : 1 ;
+}
+rule check-for-bin ( name ) {
+ if ! [ FILE_OPEN $(bindir)/$(name) : "r" ] {
+ exit "Did not find $(bindir)/$(name)." : 1 ;
+ }
}
+check-for-bin GIZA++ ;
+check-for-bin snt2cooc.out ;
+check-for-bin mkcls ;
+constant BINDIR : $(bindir) ;
#These two used to live in a tools directory.
install ghkm : training/phrase-extract/extract-ghkm//extract-ghkm : <location>$(location)/training/phrase-extract/extract-ghkm/tools ;