diff --git a/dotfiles-old/scripts/cc.sh b/dotfiles-old/scripts/cc.sh new file mode 100644 index 0000000..876d255 --- /dev/null +++ b/dotfiles-old/scripts/cc.sh @@ -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