build_osx.sh: remove lscpu cmd
[vamp-aubio-plugins.git] / build_win32.sh
1 #! /bin/bash
2
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
15
16 # get waf
17 sh scripts/get_waf.sh
18
19 # fetch Vamp SDK
20 sh scripts/get_deps_msvc.sh
21
22 # stupid patch to get workaround quote escaping in git bash
23 patch -p1 < scripts/aubio_waf_msvc.patch
24
25 # fetch and build aubio
26 sh scripts/get_aubio.sh
27
28 # revert patch
29 patch -R -p1 < scripts/aubio_waf_msvc.patch
30
31 # configure and build plugin
32 python waf configure
33
34 python waf build -v
35
36 # install in user's home directory
37 # ./waf install --destdir=$HOME
38
39 # system-wide installation
40 # sudo ./waf install
41
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