File: python-newt.prerm.in

package info (click to toggle)
newt 0.51.6-20
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 596 kB
  • ctags: 26
  • sloc: makefile: 171; sh: 12
file content (15 lines) | stat: -rw-r--r-- 340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if ( [ "$1" = "upgrade" ] || [ "$1" = "remove" ] ) && [ -L /usr/doc/__PKG__ ]; then
  rm -f /usr/doc/__PKG__
fi

# sample prerm script for Debian python packages.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#

PACKAGE=python-newt

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