blob: 4b8ff1a9ae7baeed543b3ad20cdd8f3e1f46f5a7 (
plain)
- #!/bin/sh
- if [ $# -eq 0 ]; then
- echo "Usage: $(basename $0) POOL [ DISTRIBUTION [ OTHERMIRROR ] ]"
- echo ""
- echo "Example: $(basename $0) sarge_with_hacks sarge"
- exit 1
- fi
- pool=$1
- distro=${2:-$pool}
- othermirror=${3:+--othermirror $3}
- 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/ \
- $othermirror
|