#!/bin/sh set -e if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 0.8 then update-alternatives --remove rst2newlatex /usr/share/docutils/scripts/python3/rst2newlatex fi