summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"