summaryrefslogtreecommitdiff
path: root/localcowbuilder-create
blob: 67ca225d4c2325631958496f1a1f501731efd2f9 (plain)
  1. #!/bin/sh -x
  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. buildplace="/var/cache/pbuilder/build-$pool/"
  14. aptcache="/var/cache/pbuilder/aptcache-$pool/"
  15. buildresult="$HOME/src/pbuild-$pool/"
  16. sudo cowbuilder --create \
  17. --buildresult "$buildresult" \
  18. --distribution "$distro" \
  19. --basepath "$basepath" \
  20. --aptcache "$aptcache" \
  21. ${3:+--othermirror "$3"}