summaryrefslogtreecommitdiff
path: root/localpbuilder-login
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-08-30 16:11:55 +0000
committerJonas Smedegaard <dr@jones.dk>2006-08-30 16:11:55 +0000
commitd655de37e5a252860de775b003a40d56fa9cae2d (patch)
treed42cab31251a732b8b1c2ce6c2de9dfb4891ee89 /localpbuilder-login
parent7175ecb73e8975a11d6f8652d27b65807b2500f1 (diff)
Add new (using seemingly broken upstream functionality) script localpbuilder-login.
Diffstat (limited to 'localpbuilder-login')
-rwxr-xr-xlocalpbuilder-login19
1 files changed, 19 insertions, 0 deletions
diff --git a/localpbuilder-login b/localpbuilder-login
new file mode 100755
index 0000000..a608e88
--- /dev/null
+++ b/localpbuilder-login
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+if [ $# -eq 0 ]; then
+ echo "Usage: $(basename $0) POOL"
+ echo ""
+ echo "Example: $(basename $0) sarge_with_hacks"
+ exit 1
+fi
+
+pool=$1
+
+basetgz="/var/cache/pbuilder/base-$pool.tgz"
+buildplace="/var/cache/pbuilder/build-$pool/"
+aptcache="/var/cache/pbuilder/aptcache-$pool/"
+
+sudo pbuilder --login \
+ --basetgz "$basetgz" \
+ --buildplace "$buildplace" \
+ --aptcache "$aptcache"