summaryrefslogtreecommitdiff
path: root/localpbuilder-update
blob: 8803e4a9e38d4b5d768b0291402b6e62cee0220e (plain)
  1. #!/bin/sh
  2. if [ $# -eq 0 ]; then
  3. echo "Usage: $(basename $0) POOL"
  4. echo ""
  5. echo "Example: $(basename $0) sarge_with_hacks"
  6. exit 1
  7. fi
  8. pool=$1
  9. export CCACHE_DIR="/var/cache/pbuilder/ccache-$pool"
  10. export PATH="/usr/lib/ccache:${PATH}"
  11. sudo pbuilder update \
  12. --basetgz /var/cache/pbuilder/base-$pool.tgz \
  13. --buildplace /var/cache/pbuilder/build-$pool/ \
  14. --aptcache /var/cache/pbuilder/aptcache-$pool/