1 2 3 4 5 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