/usr/share/doc/xml-core/examples/foo.prerm is in xml-core 0.13+nmu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 | #!/bin/sh
## ----------------------------------------------------------------------
## debian/prerm: preremoval script for foo
## ----------------------------------------------------------------------
## ----------------------------------------------------------------------
## Abort if any command returns an error value
set -e
## --------------------------------------------------------------
## Remove XML catalog entries
if [ "$1" = "remove" -o "$1" = "upgrade" ]
then
update-xmlcatalog --verbose --add --root --type public \
--id "-//FOO//DTD FOO//EN"
update-xmlcatalog --verbose --add --root --type system \
--id "http://www.foo.org/foo/foo.dtd"
update-xmlcatalog --verbose --add --package foo --type public \
--id "-//FOO//DTD FOO//EN"
update-xmlcatalog --verbose --add --package foo --type system \
--id "http://www.foo.org/foo/foo.dtd"
fi
## ----------------------------------------------------------------------
## Automatically added sections
#DEBHELPER#
exit 0
## ----------------------------------------------------------------------
|