#!/bin/sh set -e # Template for diversions ORIG_FILE="/usr/lib/libreoffice/presets/basic/script.xlc" OUR_FILE="/usr/lib/libreoffice/presets/basic/script-custom.xlc" ORIG_FILE2="/usr/lib/libreoffice/presets/basic/dialog.xlc" OUR_FILE2="/usr/lib/libreoffice/presets/basic/dialog-custom.xlc" OUR_PACKAGE="lliurex-dgti-conf-membrete" case $1 in remove|purge|abort-install|disappear) if [ -f ${ORIG_FILE}.real ] ; then rm -f ${ORIG_FILE} dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE}|| true fi if [ -f ${ORIG_FILE2}.real ] ; then rm -f ${ORIG_FILE2} dpkg-divert --package ${OUR_PACKAGE} --rename --quiet --remove ${ORIG_FILE2}|| true fi ;; *) echo "Nothing to do" ;; esac # Other Stuff # #DEBHELPER#