blob: 9b2efc07f625b505f6b7b52495356a02411e585d (
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
38
39
40
41
42
43
44
45
46
|
#!/bin/sh
#
# this is run by the Jenkins build automation server, you track the project
# and results here:
#
# https://macosx105-i386.pdlab.puredata.info/job/template-libraries/
set -o xtrace
if [ -x /sw/bin/init.sh ]; then
. /sw/bin/init.sh
fi
if [ $# -eq 1 ]; then
BUILD_ID=$1
else
BUILD_ID=`date +%Y-%m-%d_%H-%M-%S`
fi
case `uname -s` in
Darwin)
tarball=template-libraries_macosx_$BUILD_ID
;;
MINGW*)
tarball=template-libraries_windows-i386_$BUILD_ID
;;
*)
tarball=template-libraries_`uname -s`-`uname -m`_$BUILD_ID
;;
esac
DESTDIR=`pwd`/DESTDIR/$tarball
echo "WHAT IS HERE(`pwd`): `ls -l $(pwd)`"
for dir in `/usr/bin/find . -name \*-meta.pd | sed -n 's|\(.*\)/[a-zA-Z0-9_-]*-meta\.pd|\1|p' `
do
(test -e "$dir/Makefile" && echo "Building $dir") || continue
make -C $dir dist
make -C $dir distclean
make -C $dir
make -C $dir DESTDIR=$DESTDIR objectsdir="" install
done
cd DESTDIR && \
tar cjpf "$tarball.tar.bz2" "$tarball"
|