2017-12-29 18:20:03 +00:00
|
|
|
#!/bin/sh
|
2017-12-25 16:01:03 +00:00
|
|
|
|
2018-02-08 16:41:30 +00:00
|
|
|
# CCACHEDIR - for pbuilder ; CCACHE_DIR - for ccache
|
|
|
|
|
|
|
|
echo "CCACHEDIR=$CCACHEDIR CCACHE_DIR=$CCACHE_DIR SET_CCACHEDIR=$SET_CCACHEDIR"
|
|
|
|
|
2018-02-13 18:00:06 +00:00
|
|
|
[ -z "$CCACHE_DIR" ] && export CCACHE_DIR=${CCACHEDIR:=${SET_CCACHEDIR=/var/cache/pbuilder/ccache}}
|
|
|
|
|
2018-02-08 16:41:30 +00:00
|
|
|
if [ -n "$CCACHE_DIR" ]; then
|
|
|
|
mkdir -p $CCACHE_DIR || true
|
|
|
|
chown -R $BUILDUSERID:$BUILDUSERID $CCACHE_DIR || true
|
|
|
|
chmod -R a+rwx $CCACHE_DIR || true
|
2018-01-20 02:35:16 +00:00
|
|
|
fi
|
2018-01-15 18:57:10 +00:00
|
|
|
|
|
|
|
ccache --show-stats
|
2018-02-07 20:48:15 +00:00
|
|
|
ccache -M ${CCACHE_SIZE:=32G}
|