summaryrefslogtreecommitdiff
path: root/.ci/docker-ccache-setup.sh
blob: 748e743bf9170debcc7a65090da77934c05cc1c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

CI_BUILD_TYPE="$1"

cp .ci/ccache.conf ~/.ccache

if [ "$1" = "release-ready" ] ; then
  ccache -o base_dir="$(pwd)/$(grep '^PACKAGE_STRING' config.log|cut -d\' -f2|tr ' ' -)"
else
  ccache -o base_dir=$(pwd)
fi