File: prerm.pyt

package info (click to toggle)
newt 0.50.17-9.6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 572 kB
  • ctags: 1,065
  • sloc: ansic: 7,315; python: 537; makefile: 402; sh: 229
file content (15 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -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