summaryrefslogtreecommitdiff
path: root/localcowbuilder-create
blob: 90f9d8943ed50c21cee376cf5cfa9e723fb9585c (plain)
  1. #!/bin/sh
  2. if [ $# -eq 0 ]; then
  3. echo "Usage: $(basename $0) POOL [ DISTRIBUTION [ OTHERMIRROR] ]"
  4. echo ""
  5. echo "Examples:"
  6. echo " $(basename $0) sarge"
  7. echo " $(basename $0) sarge+hacks sarge 'deb http://example.com/ sarge hacks'"
  8. exit 1
  9. fi
  10. pool=$1
  11. distro=${2:-$pool}
  12. basepath="/var/cache/pbuilder/cow-$pool"
  13. aptcache="/var/cache/pbuilder/aptcache-$pool/"
  14. buildresult="$HOME/src/pbuild-$pool/"
  15. sudo cowbuilder --create \
  16. --buildresult "$buildresult" \
  17. --distribution "$distro" \
  18. --basepath "$basepath" \
  19. --aptcache "$aptcache" \
  20. ${3:+--othermirror "$3"}