summaryrefslogtreecommitdiff
path: root/localpbuilder-create
blob: 97fc6d849995d6a1344facde3d8682f65c43b77c (plain)
  1. #!/bin/sh
  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. basetgz="/var/cache/pbuilder/base-$pool.tgz"
  13. buildplace="/var/cache/pbuilder/build-$pool/"
  14. aptcache="/var/cache/pbuilder/aptcache-$pool/"
  15. buildresult="$HOME/src/pbuild-$pool/"
  16. sudo pbuilder create \
  17. --buildresult "$buildresult" \
  18. --distribution "$distro" \
  19. --basetgz "$basetgz" \
  20. --buildplace "$buildplace" \
  21. --aptcache "$aptcache" \
  22. ${3:+--othermirror "$3"}