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