[Frugalware-darcs] pacman: makepkg: bugfix for building outside a darcs tree, but in chroot when using Finclude

VMiklos vmiklos at frugalware.org
Thu Mar 16 17:49:42 CET 2006


[makepkg: bugfix for building outside a darcs tree, but in chroot when using Finclude
VMiklos <vmiklos at frugalware.org>**20060207123657] {
hunk ./scripts/makepkg 747
-	if darcs --commands 2>&1|grep -q add; then
-		[ -d $CHROOTDIR/var/tmp/fst/include/ ] || mkdir -p $CHROOTDIR/var/tmp/fst/include/
-		if [ -d `darcs add . 2>&1|sed -n 's/[^/]*/../g; 4 p'`/source/include ]; then
-			cp `darcs add . 2>&1|sed -n 's/[^/]*/../g; 4 p'`/source/include/* $CHROOTDIR/var/tmp/fst/include/
-		elif [ -d $fst_root/$reponame/source/include ]; then
-			cp $fst_root/$reponame/source/include/* $CHROOTDIR/var/tmp/fst/include/
-		fi
+	[ -d $CHROOTDIR/var/tmp/fst/include/ ] || mkdir -p $CHROOTDIR/var/tmp/fst/include/
+	if darcs --commands 2>&1|grep -q add && [ -d `darcs add . 2>&1|sed -n 's/[^/]*/../g; 4 p'`/source/include ]; then
+		cp `darcs add . 2>&1|sed -n 's/[^/]*/../g; 4 p'`/source/include/* $CHROOTDIR/var/tmp/fst/include/
+	elif [ -d $fst_root/$reponame/source/include ]; then
+		cp $fst_root/$reponame/source/include/* $CHROOTDIR/var/tmp/fst/include/
}


More information about the Frugalware-darcs mailing list