blob: 33d70f2fe567b12a291ec3f9a752b828b9c1ffe0 (
plain)
- #!/bin/sh
- set -e
- PRG=$(basename "$0")
- function showhelp() {
- cat <<EOF
- Usage: $PRG POOL [pbuilderopts]
- Example: $PRG sarge_with_hacks
- EOF
- }
- if [ $# -eq 0 ]; then
- showhelp
- exit 1
- fi
- pool=$1
- shift
- 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" \
- $@
|