#!/bin/bash
-LOG_FILE="../merge.log"
-build_host="sprygo"
-build_dir="/scratch/sfr/next"
-build_cmd="bin/build_next"
-
no_build=false
[ "$1" = "-n" ] && {
shift
patch="$1"
shift
-[ -n "$1" ] && build_host="$1"
+. "$(dirname $0)/common.sh"
log()
{
$no_build && exit 0
-rsync -avH --exclude .git --delete . "$build_host":"$build_dir"/. || {
- echo Rsync failed 1>&2
+git push -f "${build_host}${build_host:+:}${build_dir}" master:refs/heads/next || {
+ echo git push failed 1>&2
bash -i || exit
}
-ssh "$build_host" "$build_cmd" || {
+"$bin_dir/do_build" || {
echo Build failed 1>&2
bash -i || exit
}