#!/bin/sh
set -e
if [ install = "$1" -o \( "$1" = upgrade -a \
    \( "$2" = "4.60" -o "$2" = "4.61" -o "$2" = "4.62" -o "$2" = "4.63" -o "$2" = "4.64" \) \) ]; then
    dpkg-divert --quiet --package pine --add --rename \
	--divert /usr/bin/clone-editor-moved /usr/bin/pico
    dpkg-divert --quiet --package pine --add --rename \
	--divert /usr/share/man/man1/clone-editor-moved.1.gz \
	/usr/share/man/man1/pico.1.gz
fi
