summaryrefslogtreecommitdiff
path: root/localpbuilder-create
blob: d86a171e7d8f673d1b8ad5f196e70dcd16dc1ca8 (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. sudo pbuilder create \
  13. --buildresult $HOME/src/pbuild-$pool/ \
  14. --distribution "$distro" \
  15. --basetgz /var/cache/pbuilder/base-$pool.tgz \
  16. --buildplace /var/cache/pbuilder/build-$pool/ \
  17. --aptcache /var/cache/pbuilder/aptcache-$pool/ \
  18. ${3:+--othermirror "$3"}