blob: d86a171e7d8f673d1b8ad5f196e70dcd16dc1ca8 (
plain)
- #!/bin/sh -x
- 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}
- sudo pbuilder create \
- --buildresult $HOME/src/pbuild-$pool/ \
- --distribution "$distro" \
- --basetgz /var/cache/pbuilder/base-$pool.tgz \
- --buildplace /var/cache/pbuilder/build-$pool/ \
- --aptcache /var/cache/pbuilder/aptcache-$pool/ \
- ${3:+--othermirror "$3"}
|