[Frugalware-darcs] pacman-tools: added chroot support to Finclude

VMiklos vmiklos at frugalware.org
Mon Oct 3 21:50:32 CEST 2005


Mon Oct  3 20:54:25 CEST 2005  VMiklos <vmiklos at frugalware.org>
  * added chroot support to Finclude
diff -rN -u old-darcs/fwmakepkg new-darcs/fwmakepkg
--- old-darcs/fwmakepkg	2005-10-03 21:50:32.000000000 +0200
+++ new-darcs/fwmakepkg	2005-10-03 20:55:02.000000000 +0200
@@ -7,6 +7,7 @@
 # This file can be distributed under the terms of the
 # GNU General Public License version 2.
 
+[ -z "$startdir" ] && startdir=`pwd`
 Fsrcdir="$startdir/src"
 Fdestdir="$startdir/pkg"
 Fprefix="/usr"
@@ -365,11 +366,17 @@
 {
 	if [ "$startdir" = `pwd` ]; then
 		local i
-		local Fincdir=`darcs add . 2>&1|sed -n 's/[^/]*/../g; 4 p'`/source/include
-		for i in "$@"
-		do
-			source $Fincdir/$i.sh || Fdie
-		done
+		if darcs --commands 2>&1|grep -q add; then
+			local Fincdir=`darcs add . 2>&1|sed -n 's/[^/]*/../g; 4 p'`/source/include
+		elif [ -d /var/tmp/fst/include ]; then
+			local Fincdir=/var/tmp/fst/include
+		fi
+		if [ ! -z "$Fincdir" ]; then
+			for i in "$@"
+			do
+				source $Fincdir/$i.sh || Fdie
+			done
+		fi
 	fi
 }
 



More information about the Frugalware-darcs mailing list