blob: 70de9aa15b73be2feacfe59e8526bd02bfe520ce (
plain)
- #!/bin/sh
- if [ $# -eq 0 ]; then
- echo "Usage: $(basename $0) POOL [ DISTRIBUTION [ EXTRA_ARCHIVES ] ]"
- 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
|