diff options
-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} \ |