Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (26 sloc) 0.826 kB
d8725da @mbert Added 'debian' subdir.
authored
1 #!/bin/sh
2
3 set -e
4
5 case "$1" in
6 upgrade)
7 if dpkg --compare-versions "$2" '<<' "2.2.0-2"; then
8 update-alternatives --quiet --remove ctags /usr/bin/elvtags
9 for app in editor ex input vi view; do
10 update-alternatives --quiet --remove "$app" /usr/bin/elvisnox
11 done
12
13 if dpkg --compare-versions "$2" '<<' "2.2.0-1"; then
14 update-alternatives --quiet --remove ref /usr/bin/ref-elvis
15 else
16 update-alternatives --quiet --remove ref /usr/bin/elvref
17 fi
18
19 [ ! -d /usr/share/doc/elvis ] || rm -rf /usr/share/doc/elvis
20 fi
21 ;;
22 install|abort-upgrade)
23 ;;
24 *)
25 echo "preinst called with unknown argument \`$1'" >&2
26 exit 1
27 ;;
28 esac
29
30 #DEBHELPER#
31
32 exit 0
Something went wrong with that request. Please try again.