File: prerm

package info (click to toggle)
pyftpd 0.8.4.3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 528 kB
  • ctags: 470
  • sloc: python: 2,802; sh: 80; makefile: 43
file content (16 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh -e


PACKAGE=`basename $0 .prerm`

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

dpkg --listfiles $PACKAGE |
        awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | sed -e 's/\/etc\/pyftpd/\/usr\/share\/pyftpd/g' |
        xargs rm -f >&2

#DEBHELPER#

exit 0