summaryrefslogtreecommitdiffstats
path: root/debian/wireshark-dev.prerm
blob: 8614658c8febaf1ff6f86b965f4da196a47ea749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/bash
#
# Debian prerm script for Python x.y hierarchical modules
# Written by Gregor Hoffleit <flight@debian.org>
# Extended by Matthias Klose <doko@debian.org>
#

set -e

PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'`

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

#DEBHELPER#