aboutsummaryrefslogtreecommitdiff
path: root/scripts/nightly-build.sh
blob: 622aa971820c31ff5b4523aece0356bc787fdc51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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