diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2013-01-24 17:14:30 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2013-01-24 17:14:30 +0000 |
commit | db5c20932a05c0ec1273145d9893e040b12895b0 (patch) | |
tree | 3f6d0a066a162d94c2218b31da7589f709e5161f /externals | |
parent | 8565a4357f2d8a7c69713594fbc5e37375376840 (diff) |
create a tarball of everything that successfully installed
svn path=/trunk/; revision=16984
Diffstat (limited to 'externals')
-rwxr-xr-x | externals/build-all-libdirs.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/externals/build-all-libdirs.sh b/externals/build-all-libdirs.sh index 55156722..eefa3325 100755 --- a/externals/build-all-libdirs.sh +++ b/externals/build-all-libdirs.sh @@ -9,13 +9,23 @@ 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_$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 - rm -rf -- $dir/destdir - mkdir $dir/destdir - make -C $dir DESTDIR=$dir/destdir objectsdir="" install + make -C $dir DESTDIR=$DESTDIR objectsdir="" install done + +cd DESTDIR && \ + tar cjpf "$tarball.tar.bz2" "$tarball" |