File: pact-doc.postinst

package info (click to toggle)
pact 980714-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 13,096 kB
  • ctags: 26,034
  • sloc: ansic: 109,076; lisp: 9,645; csh: 7,147; fortran: 1,050; makefile: 136; lex: 95; sh: 32
file content (16 lines) | stat: -rw-r--r-- 346 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash -e

PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'`

case "$1" in
    configure|abort-upgrade|abort-remove|abort-deconfigure)
	if command -v install-docs >/dev/null 2>&1; then
	    install-docs -i /usr/share/doc-base/$PACKAGE
	fi
    ;;

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