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

Emanuele Rocca ema at costa.debian.org
Sun Sep 24 12:25:41 UTC 2006


Author: ema
Date: 2006-09-24 12:25:41 +0000 (Sun, 24 Sep 2006)
New Revision: 885

Modified:
   scripts/pbuilder/pdebuild-sources.sh
Log:
Workaround for the 'Argument list too long' problem, 
spotted by intero (Roberto Pariset).


Modified: scripts/pbuilder/pdebuild-sources.sh
===================================================================
--- scripts/pbuilder/pdebuild-sources.sh	2006-09-24 08:37:18 UTC (rev 884)
+++ scripts/pbuilder/pdebuild-sources.sh	2006-09-24 12:25:41 UTC (rev 885)
@@ -38,8 +38,15 @@
 		;;
 	"clean")
 		echo -n "Cleaning build tree..."
-		sudo rm -rf $SCRIPTSDIR/pbuilder/xfce/build/*
-		rm $SCRIPTSDIR/pbuilder/xfce/log/*
+               # .log 
+               find $SCRIPTSDIR/pbuilder/xfce/log -type f \
+                   -name '*.log' -exec rm {} \;
+               # .deb
+               find $SCRIPTSDIR/pbuilder/xfce/build -type f \
+                   -name '*.deb' -exec sudo rm {} \;
+               # pbuilder dirs
+               find $SCRIPTSDIR/pbuilder/xfce/build -mindepth 1 -maxdepth 1 \
+                   -type d -exec sudo rm -rf {} \;
 		echo "done."
 		exit 0
 		;;




More information about the Pkg-xfce-commits mailing list