#! /bin/sh

if [ "${1}" = remove ]; then
	if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then
		update-alternatives --remove cc /usr/bin/gcc
		update-alternatives --remove c89 /usr/bin/c89.gcc
		update-alternatives --remove c99 /usr/bin/c99.gcc
		rm -f /usr/bin/gcc
		rm -f /usr/bin/c89.gcc
		rm -f /usr/bin/c99.gcc
	fi
fi