#!/bin/sh

set -x

CCACHE="$(which ccache)"

if [ -z "${CCACHE}" ]
then
	echo "ccache binary not found..."
	exit 1
fi

mkdir -p ~/bin/ccache_symlinks

for compiler in gcc mips_4KCle-gcc mipsel-linux-gcc mipsel-linux-uclibc-gcc
do
	rm -f ~/bin/ccache_symlinks/$compiler
	ln -s ${CCACHE} ~/bin/ccache_symlinks/$compiler
done

