File: python2.2-pymacs.prerm

package info (click to toggle)
pymacs 0.22-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,020 kB
  • ctags: 340
  • sloc: python: 2,519; lisp: 460; makefile: 120; sh: 113
file content (23 lines) | stat: -rw-r--r-- 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh -e
#
# sample prerm script for Debian python packages.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#

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


## Alternatives

if [ $1 != "upgrade" ]; then
    # Remove alternatives
    for i in pymacs-services rebox ; do
        update-alternatives --remove $i /usr/bin/$i.python2.2
    done
fi


#DEBHELPER#