diff options
author | Jonas Smedegaard <dr@jones.dk> | 2005-12-05 17:37:27 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2005-12-05 17:37:27 +0000 |
commit | f130c87ccac4195b613073c8b6f0862adc28dd02 (patch) | |
tree | 21b8487031b2560ff61100951473b071b20516e2 | |
parent | a6b0ef1fe9a951d9a85c34393166615ab8d41494 (diff) |
Use ccache.
-rwxr-xr-x | localpbuilder-create | 3 | ||||
-rwxr-xr-x | localpbuilder-update | 3 | ||||
-rwxr-xr-x | localpdebuild | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/localpbuilder-create b/localpbuilder-create index 70de9aa..d5b7e41 100755 --- a/localpbuilder-create +++ b/localpbuilder-create @@ -11,6 +11,9 @@ pool=$1 distro=${2:-$pool} othermirror=${3:+--othermirror $3} +export CCACHE_DIR="/var/cache/pbuilder/ccache-$pool" +export PATH="/usr/lib/ccache:${PATH}" + sudo pbuilder create \ --buildresult $HOME/src/pbuild-$pool/ \ --distribution "$distro" \ diff --git a/localpbuilder-update b/localpbuilder-update index 32a7c82..8803e4a 100755 --- a/localpbuilder-update +++ b/localpbuilder-update @@ -9,6 +9,9 @@ fi pool=$1 +export CCACHE_DIR="/var/cache/pbuilder/ccache-$pool" +export PATH="/usr/lib/ccache:${PATH}" + sudo pbuilder update \ --basetgz /var/cache/pbuilder/base-$pool.tgz \ --buildplace /var/cache/pbuilder/build-$pool/ \ diff --git a/localpdebuild b/localpdebuild index 869ddf2..c3d85b8 100755 --- a/localpdebuild +++ b/localpdebuild @@ -46,6 +46,9 @@ while [ $# -gt 0 ]; do done pbuilderopts="$pbuilderopts $@" +export CCACHE_DIR="/var/cache/pbuilder/ccache-$pool" +export PATH="/usr/lib/ccache:${PATH}" + pdebuild \ --buildresult $HOME/src/pbuild-$pool/ \ ${debbuildopts:+--debbuildopts $debbuildopts} \ |