Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 758 Bytes
#!/bin/sh
set -e
case "$1" in
configure)
update-alternatives --quiet \
--install /usr/bin/editor editor /usr/bin/elvisnox 90 \
--slave /usr/share/man/man1/editor.1.gz editor.1.gz \
/usr/share/man/man1/elvisnox.1.gz
for app in editor ex input vi view; do
update-alternatives --quiet \
--install /usr/bin/"$app" "$app" /usr/bin/elvisnox 120 \
--slave /usr/share/man/man1/"$app".1.gz "$app".1.gz \
/usr/share/man/man1/elvisnox.1.gz
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0