File: foo.postinst

package info (click to toggle)
xml-core 0.13
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 216 kB
  • ctags: 29
  • sloc: perl: 553; makefile: 161; sh: 46; xml: 10
file content (39 lines) | stat: -rwxr-xr-x 1,259 bytes parent folder | download | duplicates (8)
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
37
38
39
#!/bin/sh
## ----------------------------------------------------------------------
## debian/postinst: post-installation script for foo
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
## Abort if any command returns an error value
set -e

## --------------------------------------------------------------
## Install XML catalog entries
if [ "$1" = "configure" ]
then

    update-xmlcatalog --verbose --add --package foo --type public \
        --id "-//FOO//DTD FOO//EN" \
        --local /usr/share/xml/schema/foo/catalog.xml

    update-xmlcatalog --verbose --add --package foo --type system \
        --id "http://www.foo.org/foo/foo.dtd" \
        --local /usr/share/xml/schema/foo/catalog.xml

    update-xmlcatalog --verbose --add --root --type public \
        --id "-//FOO//DTD FOO//EN" \
        --package foo

    update-xmlcatalog --verbose --add --root --type system \
        --id "http://www.foo.org/foo/foo.dtd" \
        --package foo

fi

## ----------------------------------------------------------------------
## Automatically added sections
#DEBHELPER#

exit 0

## ----------------------------------------------------------------------