summaryrefslogtreecommitdiff
path: root/localpbuilder-create
blob: 28681c8e8674185004673f64cd33c4fdd4bffcaf (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. buildhost=`hostname -s`
  9. pool=$1
  10. distro=${2:-$pool}
  11. othermirror=${3:+--othermirror $3}
  12. sudo pbuilder create \
  13. --buildresult $HOME/pub/debian-$buildhost/pbuild-$pool/ \
  14. --distribution "$distro" \
  15. --basetgz /var/cache/pbuilder/base-$pool.tgz \
  16. --buildplace /var/cache/pbuilder/build-$pool/ \
  17. --aptcache /var/cache/pbuilder/aptcache-$pool/ \
  18. $othermirror