346
|
1 |
#!/bin/sh
|
|
2 |
# postrm script for canfestival-objdictedit
|
|
3 |
#
|
|
4 |
# see: dh_installdeb(1)
|
|
5 |
|
|
6 |
set -e
|
|
7 |
|
|
8 |
OBJDICTEDIT=/usr/bin/objdictedit
|
|
9 |
OBJDICTGEN=/usr/bin/objdictgen
|
|
10 |
|
|
11 |
case "$1" in
|
|
12 |
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
|
13 |
|
|
14 |
if [ -f "$OBJDICTEDIT" ]; then
|
|
15 |
rm $OBJDICTEDIT
|
|
16 |
fi
|
|
17 |
|
|
18 |
if [ -f "$OBJDICTGEN" ]; then
|
|
19 |
rm $OBJDICTGEN
|
|
20 |
fi
|
|
21 |
;;
|
|
22 |
|
|
23 |
*)
|
|
24 |
echo "postrm called with unknown argument \`$1'" >&2
|
|
25 |
exit 1
|
|
26 |
;;
|
|
27 |
esac
|
|
28 |
|
|
29 |
# dh_installdeb will replace this with shell code automatically
|
|
30 |
# generated by other debhelper scripts.
|
|
31 |
|
|
32 |
#DEBHELPER#
|
|
33 |
|
|
34 |
exit 0
|
|
35 |
|
|
36 |
|