[Pkg-xfce-commits] r582 - scripts/pbuilder

Yves-Alexis Perez corsac-guest at costa.debian.org
Sun Apr 30 23:54:53 UTC 2006


Author: corsac-guest
Date: 2006-04-30 23:54:52 +0000 (Sun, 30 Apr 2006)
New Revision: 582

Modified:
   scripts/pbuilder/pdebuild-sources.sh
Log:
absolut path is better


Modified: scripts/pbuilder/pdebuild-sources.sh
===================================================================
--- scripts/pbuilder/pdebuild-sources.sh	2006-04-30 23:19:09 UTC (rev 581)
+++ scripts/pbuilder/pdebuild-sources.sh	2006-04-30 23:54:52 UTC (rev 582)
@@ -37,7 +37,7 @@
 		;;
 	"clean")
 		echo -n "Cleaning build tree..."
-		sudo rm -rf xfce/build/*
+		sudo rm -rf $SCRIPTSDIR/pbuilder/xfce/build/*
 		echo "done."
 		exit 0
 		;;
@@ -78,18 +78,17 @@
 
 # Build every package listed in $PKGFILE (avoiding comments)
 for pkg in $(grep -v "^#" $PKGFILE | cut -f 1 -d " "); do
-	if [ -f xfce/build/$pkg ]; then
+	if [ -f $SCRIPTSDIR/pbuilder/xfce/build/$pkg ]; then
 		echo "$pkg already built, skipping"
 	else
 	
 		echo "Building $pkg..."
-		touch xfce/build/$pkg
 		if [ -d "$BUILDDIR/$pkg" ];then
     			cd $BUILDDIR/$pkg
 	    		[ "$DEBUG" ] || svn-buildpackage --svn-ignore-new \
             		--svn-builder $SCRIPTSDIR/pbuilder/pdebuild.wrapper
 	    		echo "done"
-			touch xfce/build/$pkg
+			touch $SCRIPTSDIR/pbuilder/xfce/build/$pkg
 		else
 			echo "'$BUILDDIR/$pkg' is not a directory" > /dev/stderr
 			echo "failed"




More information about the Pkg-xfce-commits mailing list