File: postinst

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 (37 lines) | stat: -rw-r--r-- 773 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
33
34
35
36
37
#!/bin/sh
# $Id: postinst,v 1.12 1998/05/17 02:05:11 herbert Exp $
#
# post install script for the Debian GNU/Linux dosemu package
#

set -e

pause() {
	echo -n "Press ENTER to continue..."
	read answer;
}

case "$1" in
abort-upgrade | abort-deconfigure | abort-remove)
	;;
configure)
	# Give warnings for old configuration files
	if [ -e /etc/dosemu.conf -o -e /etc/dosemu.users ]; then
		echo "The Debian distribution places configuration file under /etc/dosemu instead of"
		echo "under /etc.  You may wish to relocate your old configuration files."
		pause
	fi
	;;
*)
	echo "$0: incorrect arguments: $*" >&2
	exit 1
	;;
esac

# Update the X11 fonts
if [ -x /usr/X11R6/bin/mkfontdir ]; then
	/usr/X11R6/bin/mkfontdir /usr/X11R6/lib/X11/fonts/misc
fi

#DEBHELPER#
exit 0