summaryrefslogtreecommitdiff
path: root/localpbuilder-create
blob: 70de9aa15b73be2feacfe59e8526bd02bfe520ce (plain)
  1. #!/bin/sh
  2. if [ $# -eq 0 ]; then
  3. echo "Usage: $(basename $0) POOL [ DISTRIBUTION [ EXTRA_ARCHIVES ] ]"
  4. echo ""
  5. echo "Example: $(basename $0) sarge_with_hacks sarge"
  6. exit 1
  7. fi
  8. pool=$1
  9. distro=${2:-$pool}
  10. othermirror=${3:+--othermirror $3}
  11. sudo pbuilder create \
  12. --buildresult $HOME/src/pbuild-$pool/ \
  13. --distribution "$distro" \
  14. --basetgz /var/cache/pbuilder/base-$pool.tgz \
  15. --buildplace /var/cache/pbuilder/build-$pool/ \
  16. --aptcache /var/cache/pbuilder/aptcache-$pool/ \
  17. $othermirror