aboutsummaryrefslogtreecommitdiff
path: root/scripts/automated-builder.sh
blob: 4f1f2bdd517c4a8d09afad13644d49f2c2561024 (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

# this script is the first attempt to have an automated updater and builder

cvs_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/..
SYSTEM=`uname -s`

cd "${cvs_root_dir}/packages"
make unpatch_pd
../scripts/update-developer-layout.sh
make patch_pd

BUILD_DIR=.
if [ "$SYSTEM" == "Linux" ]; then
	 BUILD_DIR=linux_make
fi

if [ "$SYSTEM" == "Darwin" ]; then
	 BUILD_DIR=darwin_app
fi

cd "$BUILD_DIR"
make distclean
make package_clean
rm -rf build
make install && make package

#make test_locations
#make test_package