Script to run cron and auto update client
authorTodd Lyons <tlyons@exim.org>
Mon, 21 Oct 2013 13:33:53 +0000 (06:33 -0700)
committerTodd Lyons <tlyons@exim.org>
Mon, 21 Oct 2013 13:33:53 +0000 (06:33 -0700)
.gitignore
run_build.pl
run_cron.sh [new file with mode: 0755]

index 6351bbfd87fb6680f8649520c170d4676845d54d..6f1a30ac5ba3fbd932caedf20bd112793e3a286e 100644 (file)
@@ -1,3 +1,4 @@
 build-farm.conf
+build-farm_*.conf
 tags
 run_web_txn.pl
index 2374688e20f50960afa1d49b273a3c4d284e74b7..2383c997ffe62c295194ca5ab302c2409214788b 100755 (executable)
@@ -1387,6 +1387,7 @@ sub get_script_config_dump
         orig_env => $orig_env,
     };
     delete $conf->{secret};
+    $Data::Dumper::Sortkeys = 1;
     return  Data::Dumper->Dump([$conf],['Script_Config']);
 }
 
diff --git a/run_cron.sh b/run_cron.sh
new file mode 100755 (executable)
index 0000000..8a6f604
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if which dirname >/dev/null; then
+  BFDIR=`dirname $0`
+elif [ "x${BFDIR}" = "x" ]; then
+  echo "Cannot find BuildFarm client directory. Exiting."
+  exit 1
+fi
+
+cd $BFDIR
+# Update the build client if new version available
+if which git >/dev/null; then
+  git pull
+fi
+
+./run_branches.pl $@