doc: updated Fedora's RPM git repo URL
[barry.git] / maintainer / test-build-local.sh
blobd72ab979c1bc2ff9075ec5da62a6adb1e53acd92
1 #!/bin/sh
3 BUILDUSER="cdfrey"
5 if [ -z "$1" ] ; then
6 echo
7 echo "Usage: ./test-build-local.sh tarball"
8 echo
9 echo "Does a full build of given tarball."
10 echo
11 exit 1
14 TARPATH="$1"
15 TARNAME=`basename "$TARPATH"`
16 TARFULLPATH="$(pwd)/$TARPATH"
17 TARGET="$2"
19 set -e
22 # perform the build test in 3 stages, so that we test the
23 # headers are valid for non-barry tree builds (i.e. can we build
24 # properly with headers installed in /usr/include/barry ?)
27 rm -rf testbuild
28 mkdir testbuild
30 cd testbuild
31 tar xjvf $TARFULLPATH
33 cd *
34 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
35 make install
37 cd gui
38 export PKG_CONFIG_PATH=/home/$BUILDUSER/testbuild/rootdir/lib/pkgconfig
39 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
40 make install
42 cd ../opensync-plugin
43 ./configure --prefix=/home/$BUILDUSER/testbuild/rootdir
44 make
45 #make install # not included, since opensync's install dest depends on target
47 cd ../../rootdir
48 find
49 echo "Press enter to continue..."
50 read
52 cd ../..
53 rm -rf testbuild