3 LOG_FILE="../merge.log"
5 build_dir="/scratch/sfr/next"
6 build_cmd="bin/build_next"
28 echo "$@" | tee -a $LOG_FILE
34 $@ 2>&1 | tee -a $LOG_FILE
35 return ${PIPESTATUS[0]}
38 GIT_EDITOR=: execute git am -3 "$patch" || exit 1
42 git push -f "$build_host":"$build_dir" master:refs/heads/next || {
43 echo git push failed 1>&2
46 ssh "$build_host" "$build_cmd" || {
47 echo Build failed 1>&2