summaryrefslogtreecommitdiffstats
path: root/colorgcc/post-install
diff options
context:
space:
mode:
Diffstat (limited to 'colorgcc/post-install')
-rwxr-xr-xcolorgcc/post-install6
1 files changed, 6 insertions, 0 deletions
diff --git a/colorgcc/post-install b/colorgcc/post-install
new file mode 100755
index 000000000..715cffd94
--- /dev/null
+++ b/colorgcc/post-install
@@ -0,0 +1,6 @@
+#!/bin/bash
+if [ -x /usr/bin/ccache ]; then
+ for i in g++ gcc c++ cc; do
+ sed "s|${i}:.*|${i}: ccache /usr/bin/${i}|g" -i /etc/colorgcc/colorgccrc
+ done
+fi