summaryrefslogtreecommitdiff
path: root/testdist.sh
blob: c5628498d3d7c2d78fcd609d6d67f3c22f3db9c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

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

VER=$1

make dist && (
		mkdir -p tst
		cd tst
		rm -Rf dgedit-$VER
		tar xvzf ../dgedit-$VER.tar.gz
		cd dgedit-$VER
		./configure --prefix=/usr
		make
		DESTDIR=$PWD/tst/install make install
		(cd plugin; make install)
		make check
)