File: prerm

package info (click to toggle)
pms 0.2.19-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 456 kB
  • ctags: 389
  • sloc: python: 2,655; makefile: 59; sh: 24
file content (12 lines) | stat: -rw-r--r-- 224 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

NAME=pms

dpkg --listfiles $NAME |
        awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
        xargs rm -f >&2

if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/pms ]; then
	rm -f /usr/doc/pms
fi