Split GetStatus JVM command.
[barry/progweb.git] / maintainer / test-build-local.sh
blobfc6b22fd0cbd3d233d8d3134782792bf6130646d
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 # perform the build test in 3 stages, so that we test the
24 # headers are valid for non-barry tree builds (i.e. can we build
25 # properly with headers installed in /usr/include/barry ?)
28 rm -rf testbuild
29 mkdir testbuild
31 cd testbuild
32 tar xjvf $TARFULLPATH
34 cd *
35 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
36 make install
38 cd gui
39 export PKG_CONFIG_PATH=/home/$BUILDUSER/testbuild/rootdir/lib/pkgconfig
40 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
41 make install
43 cd ../opensync-plugin
44 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
45 make
46 #make install # not included, since opensync's install dest depends on target
48 cd ../../rootdir
49 find
50 echo "Press enter to continue..."
51 read
53 cd ../..
54 rm -rf testbuild