Don't refer to recipes and images via $TESTDIR
authorTobias Brunner <tobias@strongswan.org>
Thu, 13 Dec 2012 17:59:25 +0000 (18:59 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 17 Jan 2013 15:54:57 +0000 (16:54 +0100)
This way no symlink to the testing directory is required in $TESTDIR.

testing/scripts/build-guestimages
testing/scripts/build-rootimage

index 5186b8a..bf6d21d 100755 (executable)
@@ -54,7 +54,7 @@ do
        if [ "$host" = "winnetou" ]
        then
                execute "mkdir $LOOPDIR/var/log/apache2/ocsp" 0
-               execute "cp -rf $TESTDIR/testing/images $LOOPDIR/var/www/" 0
+               execute "cp -rf $PWD/images $LOOPDIR/var/www/" 0
                execute_chroot "ln -s /etc/openssl/certs /var/www/certs" 0
                execute_chroot "/etc/openssl/generate-crl" 0
                execute_chroot "update-rc.d apache2 defaults" 0
index 3fe8ace..8d3f32b 100755 (executable)
@@ -50,7 +50,7 @@ execute "mount -o bind $ROOTIMGCOMPILEDIR $LOOPDIR/root/compile"
 do_on_exit umount $LOOPDIR/root/compile
 
 echo "Installing software from source"
-RECPDIR=$TESTDIR/testing/scripts/recipes
+RECPDIR=$PWD/scripts/recipes
 RECIPES=`ls $RECPDIR/*.mk | xargs -n1 basename`
 execute "cp -r $RECPDIR/patches $LOOPDIR/root/compile" 0
 for r in $RECIPES