#!/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/ 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 tarball=template-libraries`uname -s`_`uname -m`_$BUILD_ID DESTDIR=`pwd`/DESTDIR/$tarball for dir in `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"