File: postinst

package info (click to toggle)
sdc 1.0.8beta-8
  • links: PTS
  • area: contrib
  • in suites: slink
  • size: 1,400 kB
  • ctags: 874
  • sloc: lisp: 8,120; ansic: 967; makefile: 671; perl: 136; sh: 50
file content (36 lines) | stat: -rw-r--r-- 719 bytes parent folder | download
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
#!/bin/sh

set -e

case "$1" in
    configure)
	## SGML INTEGRATION
	install-sgmlcatalog --quiet --install /usr/doc/sdc/CATALOG sdc
	## INFO PAGES
	install-info --quiet \
	  --section "Document Preparation" "Document Preparation" \
	  --description="An SGML document formatter" \
	  /usr/info/sdc.info.gz
	## MENU INTEGRATION
	if [ -x /usr/bin/update-menus ]; then
	    update-menus
	fi
	## DOC-BASE INTEGRATION
	if command -v install-docs >/dev/null 2>&1; then
	    install-docs -i /usr/share/doc-base/sdc
	    install-docs -i /usr/share/doc-base/sdc-man
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
    ;;
esac


exit 0