Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / doc / xml-core / examples / | server ip : 172.67.156.115 your ip : 172.70.50.23 H O M E |
Filename | /usr/share/doc/xml-core/examples/foo.postinst |
Size | 1.23 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 11-Mar-2007 11:28 |
Last accessed | 27-Apr-2025 09:55 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/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
## ----------------------------------------------------------------------
## ----------------------------------------------------------------------
## 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
## ----------------------------------------------------------------------