summaryrefslogtreecommitdiff
path: root/emulators/netbsd32_compat16/DEINSTALL
blob: caab4d81b15661963b59028bf594bec713f011d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#
# $NetBSD: DEINSTALL,v 1.1.1.1 2002/11/08 16:23:02 mrg Exp $

PKGNAME=$1
STAGE=$2

case ${STAGE} in
DEINSTALL)
	;;
POST-DEINSTALL)
	MACHINE_ARCH=@MACHINE_ARCH@
	COMPAT_EMULSUBDIR=@COMPAT_EMULSUBDIR@

	rmdir -p ${PKG_PREFIX}/${COMPAT_EMULSUBDIR} 2>/dev/null || true

	# clean up the symlink
	rm -f /emul/netbsd32

	# Regenerate the shared library cache.  This should work on either
	# a.out or on ELF with the 1.5 release.
	#
	( @LDCONFIG@ || true ) >/dev/null 2>&1
	;;
*)
	echo "Unexpected argument: ${STAGE}"
	exit 1
	;;
esac
exit 0