summaryrefslogtreecommitdiff
path: root/localpbuilder-update
blob: 9496ab79e7aaca1f9d85bfa85d737b4e6867185e (plain)
  1. #!/bin/sh
  2. set -e
  3. PRG=$(basename "$0")
  4. function showhelp() {
  5. cat <<EOF
  6. Usage: $PRG POOL
  7. Example: $PRG sarge_with_hacks
  8. EOF
  9. }
  10. if [ $# -eq 0 ]; then
  11. showhelp
  12. exit 1
  13. fi
  14. for pool in $@; do
  15. sudo pbuilder update \
  16. --basetgz /var/cache/pbuilder/base-$pool.tgz \
  17. --buildplace /var/cache/pbuilder/build-$pool/ \
  18. --aptcache /var/cache/pbuilder/aptcache-$pool/
  19. done