#! /bin/bash # # Debian prerm script for Python x.y hierarchical modules # Written by Gregor Hoffleit # Extended by Matthias Klose # 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#