summaryrefslogtreecommitdiffstats
path: root/gcc.pkg.in/prerm
blob: a980d35d078f643a3d524a80046ab4e599d77be7 (plain)
1
2
3
4
5
6
7
8
#! /bin/sh

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