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-25 13:47:57 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-11-25 13:47:57 +0300
commitef9886be496a2e0d19999e539017d55337e96467 (patch)
tree9a155bf54fa8a1670c70c8548290d73bff0ca884
parente5d308ea1bb6f88d998b4df5832b7393a104b9c6 (diff)
Added script for auto-rollback to the latest commit that passes all regtests.
-rwxr-xr-xcontrib/debugging/auto-rollback.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/debugging/auto-rollback.sh b/contrib/debugging/auto-rollback.sh
new file mode 100755
index 000000000..c08e59a31
--- /dev/null
+++ b/contrib/debugging/auto-rollback.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+git submodule init
+git submodule update regtest
+while [ true ] ; do
+ ./bjam -j$(nproc) --with-irstlm=$(pwd)/opt --with-boost=$(pwd)/opt --with-cmph=$(pwd)/opt --with-xmlrpc-c=$(pwd)/opt --with-regtest=$(pwc)/regtest -a -q $@ && break
+ commit=$(git log | grep ^commit | head -n2 | tail -n1 | sed 's/commit //')
+ echo REVERTING TO COMMIT $commit
+ git checkout $commit
+done