aboutsummaryrefslogtreecommitdiff
path: root/scripts/nightly-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nightly-build.sh')
-rwxr-xr-xscripts/nightly-build.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/nightly-build.sh b/scripts/nightly-build.sh
new file mode 100755
index 00000000..622aa971
--- /dev/null
+++ b/scripts/nightly-build.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+cvs_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/..
+UNAME=`uname -s`
+RECIPIENTS="hans@eds.org"
+DATE=`date +%Y-%m-%d_%H.%M.%S`
+LOGFILE="/tmp/pd-autobuild-${DATE}.txt"
+
+cd $cvs_root_dir
+scripts/update-developer-layout.sh
+
+# Apple Mac OS X
+if [ "${UNAME}" == "Darwin" ]; then
+cd packages/darwin_app
+fi
+
+# GNU/Linux
+if [ "${UNAME}" == "Darwin" ]; then
+cd packages/linux_make
+fi
+
+# MinGW for MS Windows
+if [ "${UNAME}" == "MINGW32_NT-5.1" ]; then
+cd packages/win32_inno
+fi
+
+make install && make package > $LOGFILE 2>&1
+
+cat $LOGFILE | mail -s "Pd Autobuild Log on $UNAME - $DATE" $RECIPIENTS