File: postinst

package info (click to toggle)
frotz 2.32r2-10
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 324 kB
  • ctags: 680
  • sloc: ansic: 5,206; makefile: 93; sh: 16
file content (15 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

set -e

rm -f /usr/lib/menu/zcode-support /etc/menu/zcode-support

update-alternatives \
  --install /usr/games/zcode-interpreter zcode-interpreter /usr/games/frotz 50 \
  --slave /usr/man/man6/zcode-interpreter.6.gz zcode-interpreter-man-gz \
	  /usr/man/man6/frotz.6.gz

if test -d /usr/X11R6/man/man6 \
        -a "`ls -A /usr/X11R6/man/man6/* 2>/dev/null`" = ""; then
  rmdir /usr/X11R6/man/man6 2>/dev/null || true
fi