aboutsummaryrefslogtreecommitdiff
path: root/externals/build-all-libdirs.sh
blob: 55156722a38c2eabfae7740b736e352336c9ecf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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

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
done