clone 384789 -1
retitle -1 Should offer a pool of symlinks just like ccache
owner -1 !
stop
On Sat, Aug 26, 2006, Eduard Bloch wrote:
> What is wrong in this picture? First, it runs gcc for cc files, instead
> of g++. Lucky that gcc seems to accept that. Second: I have set this in
> /etc/colorgcc/colorgccrc:
> g++: /usr/lib/cache/g++
> gcc: /usr/lib/cache/gcc
> c++: /usr/lib/ccache/c++
> cc: /usr/lib/ccache/cc
I suggest you use a pool of symlinks, just like ccache does. This is a
bug in colorgcc which should offer a similar dir; I'm cloning this bug
as such.
I'm attaching the script I use to update the colorgcc symlinks here
(based on the list of ccache).
--
Loïc Minier
"For subalterns, saying something intelligent is as risky as saying something
stupid."
#!/bin/sh
set -e
SYMLINKDIR="$HOME/colorgcc"
COLORGCC=/usr/bin/colorgcc
CCACHEDIR=/usr/lib/ccache
mkdir -p "$SYMLINKDIR"
cd $SYMLINKDIR
for p in "$CCACHEDIR/"*; do
b=$(basename "$p")
ln -sf "$COLORGCC" "$SYMLINKDIR/$b"
done
# remove non-existent symlinks
for p in "$SYMLINKDIR/"*; do
b=$(basename "$p")
[ -L "$CCACHEDIR/$b" ] && continue
[ -L "$SYMLINKDIR/$b" ] && rm -f "$SYMLINKDIR/$b"
done