- bumped version numbers to 0.8 in:
[barry.git] / maintainer / test-build-local.sh
blobbec0bf188dd27f1d5730007ca99f6a180236214c
1 #!/bin/sh
3 CHROOT="/var/chroot"
4 BUILDUSER="cdfrey"
6 if [ -z "$1" ] ; then
7 echo
8 echo "Usage: ./test-build-local.sh tarball"
9 echo
10 echo "Does a full build of given tarball."
11 echo
12 exit 1
15 TARPATH="$1"
16 TARNAME=`basename "$TARPATH"`
17 TARFULLPATH="$(pwd)/$TARPATH"
18 TARGET="$2"
20 set -e
23 rm -rf testbuild
24 mkdir testbuild
25 cd testbuild
26 tar xzvf $TARFULLPATH
27 cd *
28 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
29 make install
30 cd gui
31 export PKG_CONFIG_PATH=/home/$BUILDUSER/testbuild/rootdir/lib/pkgconfig
32 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
33 make install
34 cd ../../rootdir
35 find
36 echo "Press enter to continue..."
37 read
38 cd ../..
39 rm -rf testbuild