File: postinst

package info (click to toggle)
docbook-xml-jrefentry 1.1-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 104 kB
  • ctags: 37
  • sloc: xml: 439; makefile: 50; sh: 34
file content (33 lines) | stat: -rw-r--r-- 654 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
#! /bin/sh
# postinst script for docbook-xml-jrefentry
#
#   jobs: install SGML catalogs

set -e

# TODO: this stuff should be dynamic out of rules

PACKAGE=docbook-xml-jrefentry

CENTRALCAT=/etc/sgml/${PACKAGE}.cat
PKGDIR=/usr/share/sgml/docbook/custom/jrefentry

# ordinary catalogs, relative to PKGDIR
ORDCATS="catalog"

if [ "$1" = configure ]; then
    # remove the old catalog
    install-sgmlcatalog --quiet --remove $PACKAGE

    # install the new one
    for ordcat in ${ORDCATS}; do
        update-catalog --quiet --add ${CENTRALCAT} ${PKGDIR}/${ordcat}
    done
    update-catalog --quiet --add --super ${CENTRALCAT}
fi

#DEBHELPER#

exit 0