summaryrefslogtreecommitdiff
path: root/testdist.sh
blob: 288b072ca58ccd90d00430b905c26ed9c761e7b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

if [ $# -lt 1 ]
then
		echo "Missing version argument."
		exit 1
fi

if [ "$VST_BASE" == "" ]
then
		echo "Set the absolute VST_BASE variable."
		exit 1
fi


VER=$1

make dist && (
		mkdir -p tst
		cd tst
		rm -Rf drumgizmo-$VER
		tar xvzf ../drumgizmo-$VER.tar.gz
		cd drumgizmo-$VER
		./configure --enable-lv2 --enable-cli --enable-vst \
		            --with-vst-sources="$VST_BASE" --prefix=/usr \
		            --with-test --with-lv2dir=$PWD/tst/install/lv2
		make
		DESTDIR=$PWD/tst/install make install
		(cd plugin; make install)
		make check
)