3 FIXME
- CHROOTUSER is no longer an environment variable
5 if [ -z "$1" -o -z "$2" -o -z "$CHROOTUSER" ] ; then
7 echo "Usage: ./test-build.sh tarball chroot_target"
9 echo "Copies the tarball to the chroot target's tmp dir, then"
10 echo "enters the chroot system as the build user and builds everything."
12 echo "Expects CHROOTUSER to be set properly in the environment."
18 TARNAME
=`basename "$TARPATH"`
23 cp "$TARPATH" "$TARGET/tmp"
24 chroot
"$TARGET" su
- "$CHROOTUSER" -c /bin
/sh
-lc "rm -rf testbuild && mkdir testbuild && cd testbuild && tar xjvf \"/tmp/$TARNAME\" && cd * && ./configure --prefix=/home/$CHROOTUSER/testbuild/rootdir && make install && cd gui && export PKG_CONFIG_PATH=/home/$CHROOTUSER/testbuild/rootdir/lib/pkgconfig:\$PKG_CONFIG_PATH && ./configure --prefix=/home/$CHROOTUSER/testbuild/rootdir && make install && cd ../opensync-plugin && ./configure --prefix=/home/$CHROOTUSER/testbuild/rootdir && make && cd ../../rootdir && find && echo \"Press enter to continue...\" && read && cd ../.. && rm -rf testbuild"