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