updated change log to reflect reality
[barry.git] / maintainer / test-build-local.sh
blob2bf7bb2105d134d8bff94e946cd8aadc92b22244
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
30 cd testbuild
31 tar xjvf $TARFULLPATH
32 cd *
33 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
34 make install
35 cd gui
36 export PKG_CONFIG_PATH=/home/$BUILDUSER/testbuild/rootdir/lib/pkgconfig
37 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
38 make install
39 cd ../../rootdir
40 find
41 echo "Press enter to continue..."
42 read
43 cd ../..
44 rm -rf testbuild