blob: a5e767a64d7845011cc77398cd3b14a443c3b95c (
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 cowbuilder --create \
- --buildresult $HOME/src/pbuild-$pool/ \
- --distribution "$distro" \
- --basepath /var/cache/pbuilder/cow-$pool \
- --aptcache /var/cache/pbuilder/aptcache-$pool/ \
- ${3:+--othermirror "$3"}
|