File: perl-5.6.postinst

package info (click to toggle)
perl-transition 6.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 76 kB
  • ctags: 2
  • sloc: sh: 230; makefile: 22
file content (47 lines) | stat: -rwxr-xr-x 1,916 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh -e

#DEBHELPER#

if [ "$1" = configure ]
then
    # update-alternatives is currently a perl program
    if [ ! -x /usr/bin/perl ]
    then
	echo "Error: no /usr/bin/perl, can't clean up old alternatives."
	exit 0
    fi

    update-alternatives --remove perl.1p.gz \
	/usr/share/man/man1/perl-5.6.1p.gz

    # later versions of perl-5.6 made this a hard link after removing
    # the alternatives, now perl.1.gz
    rm -f /usr/share/man/man1/perl.1p.gz

    update-alternatives --remove a2p /usr/bin/a2p-5.6
    update-alternatives --remove c2ph /usr/bin/c2ph-5.6
    update-alternatives --remove h2ph /usr/bin/h2ph-5.6
    update-alternatives --remove h2xs /usr/bin/h2xs-5.6
    update-alternatives --remove perlbug /usr/bin/perlbug-5.6
    update-alternatives --remove perldoc /usr/bin/perldoc-5.6
    update-alternatives --remove pl2pm /usr/bin/pl2pm-5.6
    update-alternatives --remove splain /usr/bin/splain-5.6
    update-alternatives --remove perlcc /usr/bin/perlcc-5.6
    update-alternatives --remove dprofpp /usr/bin/dprofpp-5.6
    update-alternatives --remove s2p /usr/bin/s2p-5.6
    update-alternatives --remove find2perl /usr/bin/find2perl-5.6
    update-alternatives --remove pod2man /usr/bin/pod2man-5.6
    update-alternatives --remove pod2html /usr/bin/pod2html-5.6
    update-alternatives --remove pod2latex /usr/bin/pod2latex-5.6
    update-alternatives --remove pod2text /usr/bin/pod2text-5.6
    update-alternatives --remove pod2usage /usr/bin/pod2usage-5.6
    update-alternatives --remove podchecker /usr/bin/podchecker-5.6
    update-alternatives --remove podselect /usr/bin/podselect-5.6
    update-alternatives --remove pstruct /usr/bin/pstruct-5.6
    update-alternatives --remove rename /usr/bin/rename-5.6
    update-alternatives --remove patchls /usr/bin/patchls-5.6
    update-alternatives --remove cperl-mode.el \
	/usr/share/emacs/site-lisp/cperl-mode-5.6.el
fi

exit 0