blob: b08dc332371fd7f80f270f3f8b62fc70f468ced2 (
plain)
- #!/bin/sh
- set -e
- PRG=$(basename "$0")
- function showhelp() {
- cat <<EOF
- Usage: $PRG POOL [cowbuilderopts]
- Example: $PRG sarge_with_hacks
- EOF
- }
- if [ $# -eq 0 ]; then
- showhelp
- exit 1
- fi
- pool=$1
- shift
- basepath="/var/cache/pbuilder/cow-$pool"
- buildplace="/var/cache/pbuilder/build-$pool"
- aptcache="/var/cache/pbuilder/aptcache-$pool/"
- sudo cowbuilder --login \
- --basepath "$basepath" \
- --buildplace "$buildplace" \
- --aptcache "$aptcache" \
- $@
|