[Pkg-xfce-commits] r4816 - scripts/pbuilder
Yves-Alexis Perez
corsac at alioth.debian.org
Mon Jan 17 07:35:58 UTC 2011
Author: corsac
Date: 2011-01-17 19:35:51 +0000 (Mon, 17 Jan 2011)
New Revision: 4816
Modified:
scripts/pbuilder/pdebuild-sources.sh
Log:
simplify command line handling
Modified: scripts/pbuilder/pdebuild-sources.sh
===================================================================
--- scripts/pbuilder/pdebuild-sources.sh 2011-01-17 19:32:13 UTC (rev 4815)
+++ scripts/pbuilder/pdebuild-sources.sh 2011-01-17 19:35:51 UTC (rev 4816)
@@ -156,17 +156,11 @@
fi
fi
-if [ -z "$PACKAGES" ]; then
- # Build every package listed in $PKGFILE (avoiding comments)
- for pkg in $(grep -v "^#" $PKGFILE | cut -f 1 -d " "); do
- build $pkg
- done
-else
- # Build the package specified on the command line
- for pkg in $PACKAGES
- do
- build $pkg
- done
-fi
+[ -z "$PACKAGES" ] && PACKAGES=$(grep -v "^#" $PKGFILE | cut -f 1 -d " ")
+for pkg in $PACKAGES
+do
+ build $pkg
+done
+
#sudo umount $BUILDPLACE
More information about the Pkg-xfce-commits
mailing list