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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-11-20 16:54:18 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-11-20 16:54:18 +0300
commit3ce2f6a55dc41bd56b73b53f66110de9b3ebde0b (patch)
treec628839be27ad4853108cde0b395df81ee2e6514 /run-regtests.sh
parentbf209a35a305f77722251efa2d83364344e5cda0 (diff)
Use absolute path for external dependencies.
Diffstat (limited to 'run-regtests.sh')
-rwxr-xr-xrun-regtests.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/run-regtests.sh b/run-regtests.sh
index 8b64eac22..15eb134a5 100755
--- a/run-regtests.sh
+++ b/run-regtests.sh
@@ -2,13 +2,14 @@
# this script assumes that all 3rd-party dependencies are installed under ./opt
# you can install all 3rd-party dependencies by running make -f contrib/Makefiles/install-dependencies.gmake
-set -e -o pipefail
+set -e -o pipefail -x
-git submodule init
-git submodule update regtest
+opt=$(pwd)/opt
+# git submodule init
+# git submodule update regtest
# test compilation without xmlrpc-c
-./bjam -j$(nproc) --with-irstlm=./opt --with-boost=./opt --with-cmph=./opt --no-xmlrpc-c --with-regtest=./regtest -a -q $@ || exit $?
+./bjam -j$(nproc) --with-irstlm=$opt --with-boost=$opt --with-cmph=$opt --no-xmlrpc-c --with-regtest=./regtest -a -q $@ || exit $?
# test compilation with xmlrpc-c
-./bjam -j$(nproc) --with-irstlm=./opt --with-boost=./opt --with-cmph=./opt --with-xmlrpc-c=./opt --with-regtest=./regtest -a -q $@
+./bjam -j$(nproc) --with-irstlm=$opt --with-boost=$opt --with-cmph=$opt --with-xmlrpc-c=$opt --with-regtest=./regtest -a -q $@