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