summaryrefslogtreecommitdiff
path: root/localpbuilder-create
blob: d5b7e41f3b875a327f56d13390c95d15c3c19088 (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. pool=$1
  9. distro=${2:-$pool}
  10. othermirror=${3:+--othermirror $3}
  11. export CCACHE_DIR="/var/cache/pbuilder/ccache-$pool"
  12. export PATH="/usr/lib/ccache:${PATH}"
  13. sudo pbuilder create \
  14. --buildresult $HOME/src/pbuild-$pool/ \
  15. --distribution "$distro" \
  16. --basetgz /var/cache/pbuilder/base-$pool.tgz \
  17. --buildplace /var/cache/pbuilder/build-$pool/ \
  18. --aptcache /var/cache/pbuilder/aptcache-$pool/ \
  19. $othermirror