blob: 97fc6d849995d6a1344facde3d8682f65c43b77c (
plain)
- #!/bin/sh
- if [ $# -eq 0 ]; then
- echo "Usage: $(basename $0) POOL [ DISTRIBUTION [ OTHERMIRROR] ]"
- echo ""
- echo "Examples:"
- echo " $(basename $0) sarge"
- echo " $(basename $0) sarge+hacks sarge 'deb http://example.com/ sarge hacks'"
- exit 1
- fi
- pool=$1
- distro=${2:-$pool}
- basetgz="/var/cache/pbuilder/base-$pool.tgz"
- buildplace="/var/cache/pbuilder/build-$pool/"
- aptcache="/var/cache/pbuilder/aptcache-$pool/"
- buildresult="$HOME/src/pbuild-$pool/"
- sudo pbuilder create \
- --buildresult "$buildresult" \
- --distribution "$distro" \
- --basetgz "$basetgz" \
- --buildplace "$buildplace" \
- --aptcache "$aptcache" \
- ${3:+--othermirror "$3"}
|