[Pkg-xfce-commits] r1117 - scripts/pbuilder
Emanuele Rocca
ema at alioth.debian.org
Fri Jan 26 11:15:52 UTC 2007
Author: ema
Date: 2007-01-26 12:15:52 +0100 (Fri, 26 Jan 2007)
New Revision: 1117
Modified:
scripts/pbuilder/pdebuild-sources.sh
Log:
'create' option added
Modified: scripts/pbuilder/pdebuild-sources.sh
===================================================================
--- scripts/pbuilder/pdebuild-sources.sh 2007-01-26 10:21:04 UTC (rev 1116)
+++ scripts/pbuilder/pdebuild-sources.sh 2007-01-26 11:15:52 UTC (rev 1117)
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (C) 2005 2006 Emanuele Rocca <ema at debian.org>
+# Copyright (C) 2005 2006 2007 Emanuele Rocca <ema at debian.org>
# This code is released under the terms of the GNU GPL
#
# vim:textwidth=0
@@ -50,6 +50,15 @@
echo "done."
exit 0
;;
+ "create")
+ echo "Creating base.tgz"
+
+ [ "$DEBUG" ] || sudo $PBUILDER create --debug \
+ --configfile $CONFFILE > $PBUILDERDIR/log/pbuilder-create.log \
+ 2> $PBUILDERDIR/log/pbuilder-create-errors.log
+
+ exit 0
+ ;;
"update")
echo "Updating base.tgz"
[ "$DEBUG" ] || sudo $PBUILDER update --debug \
@@ -58,7 +67,7 @@
exit 0
;;
*)
- echo "Usage: $0 {desktop [pkg]|goodies [pkg]|clean|update}"
+ echo "Usage: $0 {desktop [pkg]|goodies [pkg]|create|update|clean}"
exit 1
;;
esac
@@ -85,7 +94,7 @@
}
echo ""
-echo "Building $BUILDING : $BUILDDIR"
+echo "Building $BUILDING/$pkg : $BUILDDIR"
echo ""
# Rough check for needed executables
@@ -102,10 +111,8 @@
[ -d "$PBUILDERDIR/log" ] || mkdir -p "$PBUILDERDIR/log"
if [ ! -f "$BASETGZ" ]; then
- echo "Creating base.tgz"
- [ "$DEBUG" ] || sudo $PBUILDER create --debug \
- --configfile $CONFFILE > $PBUILDERDIR/log/pbuilder-create.log \
- 2> $PBUILDERDIR/log/pbuilder-create-errors.log
+ echo "base.tgz is missing. Use '$0 create' to create it"
+ exit
fi
if [ -z "$PACKAGE" ]; then
More information about the Pkg-xfce-commits
mailing list