File: prerm

package info (click to toggle)
sgml-base 1.31%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: perl: 395; sh: 106; makefile: 69
file content (25 lines) | stat: -rwxr-xr-x 793 bytes parent folder | download | duplicates (7)
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
#!/bin/sh
## ----------------------------------------------------------------------
## debian/prerm: preremoval script for foo
## ----------------------------------------------------------------------

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

## --------------------------------------------------------------
## Remove SGML catalog entries
PACKAGE=foo
CENTRALCAT="/etc/sgml/${PACKAGE}.cat"
if [ "$1" = "remove" ] || [ "$1" = "upgrade" ]
then
    update-catalog --quiet --remove --super ${CENTRALCAT}
fi

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

exit 0

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