summaryrefslogtreecommitdiff
path: root/localcowbuilder-login
blob: b08dc332371fd7f80f270f3f8b62fc70f468ced2 (plain)
  1. #!/bin/sh
  2. set -e
  3. PRG=$(basename "$0")
  4. function showhelp() {
  5. cat <<EOF
  6. Usage: $PRG POOL [cowbuilderopts]
  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. basepath="/var/cache/pbuilder/cow-$pool"
  17. buildplace="/var/cache/pbuilder/build-$pool"
  18. aptcache="/var/cache/pbuilder/aptcache-$pool/"
  19. sudo cowbuilder --login \
  20. --basepath "$basepath" \
  21. --buildplace "$buildplace" \
  22. --aptcache "$aptcache" \
  23. $@