File: postrm

package info (click to toggle)
dosemu 0.66.7-13
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 5,672 kB
  • ctags: 7,566
  • sloc: ansic: 60,209; sh: 3,965; asm: 2,219; yacc: 1,980; makefile: 831; perl: 598; lex: 506; awk: 398
file content (32 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (3)
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
31
32
#!/bin/sh
# $Id: postrm,v 1.11 1998/05/17 02:05:13 herbert Exp $
#
# post-removal script for the Debian GNU/Linux dosemu package
#

set -e

case "$1" in
abort-upgrade | abort-install)
	;;
remove | upgrade | failed-upgrade | disappear)
	;;
purge)
	rm -rf /etc/dosemu /var/lib/dosemu
	;;
*)
	echo "$0: incorrect arguments: $*" >&2
	exit 1
	;;
esac

# Remove references to the fonts that we've just removed.
rm -f /usr/X11R6/lib/X11/fonts/misc/fonts.dir
find /usr/X11R6/lib/X11/fonts/misc -maxdepth 0 -empty -exec rmdir {} \;
if [ -d /usr/X11R6/lib/X11/fonts/misc ] &&
	[ -x /usr/X11R6/bin/mkfontdir ]; then
	/usr/X11R6/bin/mkfontdir /usr/X11R6/lib/X11/fonts/misc
fi

#DEBHELPER#
exit 0