1 |
#! /bin/bash -e |
#! /bin/sh -e |
2 |
# |
# |
3 |
# Debian prerm script for Python x.y hierarchical modules |
# sample prerm script for Debian python packages. |
4 |
# Written by Gregor Hoffleit <flight@debian.org> |
# Written 1998 by Gregor Hoffleit <flight@debian.org>. |
|
# Extended by Matthias Klose <doko@debian.org> |
|
5 |
# |
# |
6 |
|
|
7 |
PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'` |
PACKAGE=gnue-forms-wxgtk |
|
PV=`dpkg --listfiles $PACKAGE | sed -n -e '/^\/usr\/lib\/python.*\//{ |
|
|
s,/usr/lib/python\([0-9][0-9.]*\)/.*,\1,p |
|
|
q |
|
|
}'` |
|
8 |
|
|
9 |
dpkg --listfiles $PACKAGE | |
dpkg --listfiles $PACKAGE | |
10 |
awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | |
awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | |