Mercurial > hg > vamp-aubio-plugins
comparison build_win32.sh @ 185:3bc50a5ba12f
build_win32.sh: update script to create zip file
author | Paul Brossier <piem@piem.org> |
---|---|
date | Mon, 13 Feb 2017 22:17:19 +0100 |
parents | 290ecca2d3f4 |
children | f19cddd22dfb |
comparison
equal
deleted
inserted
replaced
184:4c5d41e39a15 | 185:3bc50a5ba12f |
---|---|
1 #! /bin/sh | 1 #! /bin/bash |
2 | 2 |
3 # instructions to build vamp-aubio-plugins for mac os x | 3 # instructions to build vamp-aubio-plugins for mac os x |
4 | |
5 set -x | |
6 set -e | |
7 | |
8 . $PWD/VERSION | |
9 VAMP_AUBIO_VERSION=$VAMP_AUBIO_MAJOR_VERSION.$VAMP_AUBIO_MINOR_VERSION.$VAMP_AUBIO_PATCH_VERSION$VAMP_AUBIO_VERSION_STATUS | |
10 | |
11 if [ "$1" = 'dist' ] | |
12 then | |
13 rm -rf contrib/ | |
14 fi | |
4 | 15 |
5 # get waf | 16 # get waf |
6 sh scripts/get_waf.sh | 17 sh scripts/get_waf.sh |
7 | 18 |
8 # fetch Vamp SDK | 19 # fetch Vamp SDK |
9 sh scripts/get_deps_msvc.sh | 20 sh scripts/get_deps_msvc.sh |
10 | 21 |
22 # stupid patch to get workaround quote escaping in git bash | |
23 patch -p1 < scripts/aubio_waf_msvc.patch | |
24 | |
11 # fetch and build aubio | 25 # fetch and build aubio |
12 sh scripts/get_aubio.sh | 26 sh scripts/get_aubio.sh |
27 | |
28 # revert patch | |
29 patch -R -p2 < scripts/aubio_waf_msvc.patch | |
13 | 30 |
14 # configure and build plugin | 31 # configure and build plugin |
15 python waf configure | 32 python waf configure |
16 | 33 |
17 python waf build -v | 34 python waf build -v |
20 # ./waf install --destdir=$HOME | 37 # ./waf install --destdir=$HOME |
21 | 38 |
22 # system-wide installation | 39 # system-wide installation |
23 # sudo ./waf install | 40 # sudo ./waf install |
24 | 41 |
25 python waf install --destdir=dist | 42 #python waf install --destdir=dist |
43 | |
44 if [ "$1" = 'dist' ] | |
45 then | |
46 DESTDIR=vamp-aubio-plugins-$VAMP_AUBIO_VERSION-win32 | |
47 rm -rf $DESTDIR $DESTDIR.zip | |
48 mkdir $DESTDIR | |
49 cp -prv contrib/aubio*/README.md $DESTDIR/README.aubio.md | |
50 cp -prv README.md $DESTDIR | |
51 cp -prv build/vamp-aubio.dll $DESTDIR | |
52 cp -prv vamp-aubio.cat vamp-aubio.n3 $DESTDIR | |
53 zip -r $DESTDIR.zip $DESTDIR | |
54 fi |