summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsbuild-setup8
1 files changed, 8 insertions, 0 deletions
diff --git a/sbuild-setup b/sbuild-setup
new file mode 100755
index 0000000..b74140e
--- /dev/null
+++ b/sbuild-setup
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+dir=/var/cache/ccache-sbuild
+install --group=sbuild --mode=2775 -d $dir
+env CCACHE_DIR=$dir ccache --max-size 4G
+cat >>/etc/schroot/sbuild/fstab <<END
+$dir $dir none rw,bind 0 0
+END \ No newline at end of file