X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=do_revert;h=965f27a86f2fca0a4f801630d465b543edc8b82b;hb=ba950ca97a30b852e16e72664f058dc13b338112;hp=f67929018b0f00d09a170757f191004a3704ec0f;hpb=72d7f5ce5648d1259b26d463aa2a59ec588e1197;p=next-scripts diff --git a/do_revert b/do_revert index f679290..965f27a 100755 --- a/do_revert +++ b/do_revert @@ -4,6 +4,8 @@ LOG_FILE="../merge.log" build_host="ka2" build_dir="/scratch/sfr/next" build_cmd="bin/build_next" +[ "$NEXT_BUILD_HOST" ] && build_host="$NEXT_BUILD_HOST" +[ "$NEXT_BUILD_DIR" ] && build_dir="$NEXT_BUILD_DIR" no_build=false [ "$1" = "-n" ] && { @@ -23,6 +25,9 @@ shift shift } +export NEXT_BUILD_HOST="$build_host" +export NEXT_BUILD_DIR="$build_dir" + log() { echo "$@" | tee -a $LOG_FILE