#!/bin/sh set -e ORIG_MO_FILE="/usr/share/pyshared/openshot/locale/ca@valencia/LC_MESSAGES/OpenShot.mo" OUR_MO_FILE="/usr/share/openshot-valencian-translation/OpenShot.mo" ORIG_PO_FILE="/usr/share/pyshared/openshot/locale/ca@valencia/LC_MESSAGES/OpenShot.po" OUR_PO_FILE="/usr/share/openshot-valencian-translation/OpenShot.po" OUR_PACKAGE="openshot-valencian-translation" case $1 in configure) if dpkg-divert --package ${OUR_PACKAGE} --add --rename --divert ${ORIG_MO_FILE}.real ${ORIG_MO_FILE} ;then ln -fs ${OUR_MO_FILE} ${ORIG_MO_FILE} || true else echo "Unabe to divert file ${ORIG_MO_FILE}" fi if dpkg-divert --package ${OUR_PACKAGE} --add --rename --divert ${ORIG_PO_FILE}.real ${ORIG_PO_FILE} ;then ln -fs ${OUR_PO_FILE} ${ORIG_PO_FILE} || true else echo "Unabe to divert file ${ORIG_PO_FILE}" fi ;; *) echo "Nothing to do" ;; esac #DEBHELPER#