links cc to tcc
This commit is contained in:
parent
e16ecf8ac7
commit
65d47523e1
15
dotfiles-old/scripts/cc.sh
Normal file
15
dotfiles-old/scripts/cc.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CC="$(which cc)"
|
||||||
|
|
||||||
|
which tcc >/dev/null
|
||||||
|
|
||||||
|
if [ -h "$CC" ]; then
|
||||||
|
unlink "$CC"
|
||||||
|
ln -s "$(which tcc)" "$CC"
|
||||||
|
else
|
||||||
|
printf "$0: \$(which cc), $(which cc), is not a symbolic link\n" >/dev/stderr
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user