summaryrefslogtreecommitdiffstats
path: root/ccache/post-install
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.servegame.org>2012-07-12 22:12:45 +0200
committerpiernov <piernov@piernov.servegame.org>2012-07-12 22:12:45 +0200
commitdbb1cbaf795d75e6cd98efa80ebe4979891adeb1 (patch)
tree89afaa2007720a4a7b3a9260a5edcb5c3e060afd /ccache/post-install
parentd2dbf5f8d8cc3dbf3338abc52724d5fe91cabea3 (diff)
downloadnutyx-extra-dbb1cbaf795d75e6cd98efa80ebe4979891adeb1.tar.gz
nutyx-extra-dbb1cbaf795d75e6cd98efa80ebe4979891adeb1.tar.bz2
nutyx-extra-dbb1cbaf795d75e6cd98efa80ebe4979891adeb1.tar.xz
nutyx-extra-dbb1cbaf795d75e6cd98efa80ebe4979891adeb1.zip
ccache 3.1.7-1 ajout port
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