summaryrefslogtreecommitdiffstats
path: root/ccache/post-install
diff options
context:
space:
mode:
Diffstat (limited to 'ccache/post-install')
-rw-r--r--ccache/post-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/ccache/post-install b/ccache/post-install
new file mode 100644
index 000000000..5cd377549
--- /dev/null
+++ b/ccache/post-install
@@ -0,0 +1,7 @@
+if [ -f /etc/colorgcc/colorgccrc ]; then
+ for i in g++ gcc c++ cc; do
+ sed "s|${i}:.*|${i}: ccache /usr/bin/${i}|g" -i /etc/colorgcc/colorgccrc
+ done
+fi
+
+for user in `getent group admin | sed "s/.*\://" | sed "s/,/ /g"`; do usermod $user -a -G ccache; done