aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/pure-data.git-auto-builder.sh
blob: 387b2855a551623f520a293433e0bdb0e0eb0311 (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
30
31
32
33
34
35
36
37
#!/bin/sh

# the source dir where this script is
## this could be done more easily with ${0%/*}
SCRIPT_DIR=$(echo $0 | sed 's|\(.*\)/.*$|\1|')
. $SCRIPT_DIR/auto-build-common

# the name of this script
## this could be done more easily with ${0##*/}
SCRIPT=$(echo $0| sed 's|.*/\(.*\)|\1|g')

# convert into absolute path
cd "${SCRIPT_DIR}/../.."
auto_build_root_dir=`pwd`
echo "build root: $auto_build_root_dir" 
rsync_distro "$auto_build_root_dir"


cd "${auto_build_root_dir}"
echo "--------------------------------------------------------------------------------"
git pull
echo "--------------------------------------------------------------------------------"
./autogen.sh
echo "--------------------------------------------------------------------------------"
./configure
echo "--------------------------------------------------------------------------------"
make
echo "--------------------------------------------------------------------------------"
mkdir "${auto_build_root_dir}/testinstall"
make DESTDIR="${auto_build_root_dir}/testinstall" install
echo "--------------------------------------------------------------------------------"
make dist


# since the above test can cause this script to exit with an error, force it
# to be happy to prevent getting automated error emails to root
true