~ubuntu-branches/ubuntu/warty/docbook-html-forms/warty

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Mark Johnson
  • Date: 2001-06-20 13:15:31 UTC
  • Revision ID: james.westby@ubuntu.com-20010620131531-elulqa92gcfcyqm5
Tags: 1.0-1
Initial Release. Closes: bug#85391

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# postinst script for docbook-html-forms
 
3
#
 
4
#   jobs: install SGML catalogs
 
5
 
 
6
set -e
 
7
 
 
8
# TODO: this stuff should be dynamic out of rules
 
9
DTDNAME=html-forms
 
10
PACKAGE=docbook-html-forms
 
11
 
 
12
CENTRALCAT=/etc/sgml/${PACKAGE}.cat
 
13
PKGDIR=/usr/share/sgml/docbook/custom/${DTDNAME}
 
14
 
 
15
# ordinary catalogs, relative to PKGDIR
 
16
ORDCATS="catalog"
 
17
 
 
18
if [ "$1" = configure ]; then
 
19
    # remove the old catalog
 
20
    install-sgmlcatalog --quiet --remove $PACKAGE
 
21
 
 
22
    # install the new one
 
23
    for ordcat in ${ORDCATS}; do
 
24
        update-catalog --quiet --add ${CENTRALCAT} ${PKGDIR}/${ordcat}
 
25
    done
 
26
    update-catalog --quiet --add --super ${CENTRALCAT}
 
27
fi
 
28
 
 
29
#DEBHELPER#
 
30
 
 
31
exit 0
 
32
 
 
33