#!/bin/sh set -e SYSTEM_CONFIG_SCRIPT="/usr/lib/libreoffice/share/registry/res/registry_ca.xcd" OUR_BINARY="/usr/lib/libreoffice/share/registry/res/registry_qcv.xcd" SYSTEM_TR_SCRIPT="/usr/lib/libreoffice/program/resource/sfxca.res" OUR_TR_SCRIPT="/usr/lib/libreoffice/program/resource/sfxqcv.res" SYSTEM_SFX_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/sfx/ui/res/ca.zip" OUR_SFX_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/sfx/ui/res/qcv.zip" SYSTEM_FILTER_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/cui/ui/res/ca.zip" SYSTEM_CUI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/cui/ui/res/ca.zip" SYSTEM_SWRITER_UI_SCRIPT="/usr/lib/libreoffice/share/config/soffice.cfg/modules/swriter/ui/res/ca.zip" # INKSCAPE SYSTEM_INKSCAPE_MO="/usr/share/locale/ca@valencia/LC_MESSAGES/inkscape.mo" OUR_INKSCAPE_MO="/usr/share/locale-langpack/ca_ES@valencia/LC_MESSAGES/inkscape.mo" # Dr GEO SYSTEM_DRGEO_MO="/usr/share/locale/ca/LC_MESSAGES/drgeo.mo" OUR_DRGEO_MO="/usr/share/locale-langpack/ca_ES@valencia/LC_MESSAGES/drgeo.mo" #SMART_SYSTEM_CONFIG_SCRIPT="/opt/SMART\ Technologies/Notebook\ Software/bin/notebook" #SMART_OUR_BINARY="/usr/bin/notebook.lliurex" #MSCORE_SYSTEM_CONFIG_SCRIPT="/usr/share/mscore-1.3/locale/mscore_ca.qm" #MSCORE_OUR_BINARY="/usr/share/mscore-1.3/locale/mscore_ca@valencia.qm" # Musescore MSCORE_SYSTEM_CONFIG_SCRIPT="/usr/share/mscore-2.0/locale/mscore_ca@valencia.qm" MSCORE_OUR_BINARY="/usr/share/mscore-1.3/locale/mscore_ca@valencia.qm" case $1 in remove|purge|abort-install|disappear) if [ -f "${SYSTEM_CONFIG_SCRIPT}.real" ] ; then rm -f "${SYSTEM_CONFIG_SCRIPT}" dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${SYSTEM_CONFIG_SCRIPT}" || true fi if [ -f "${SYSTEM_TR_SCRIPT}.real" ] ; then rm -f "${SYSTEM_TR_SCRIPT}" dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${SYSTEM_TR_SCRIPT}" || true fi if [ -f "${SYSTEM_SFX_UI_SCRIPT}.real" ] ; then rm -f "${SYSTEM_SFX_UI_SCRIPT}" dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${SYSTEM_SFX_UI_SCRIPT}" || true fi if [ -f "${SYSTEM_FILTER_UI_SCRIPT}.real" ] ; then rm -f "${SYSTEM_FILTER_UI_SCRIPT}" dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${SYSTEM_FILTER_UI_SCRIPT}" || true fi if [ -f "${SYSTEM_CUI_SCRIPT}.real" ] ; then rm -f "${SYSTEM_CUI_SCRIPT}" dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${SYSTEM_CUI_SCRIPT}" || true fi if [ -f "${SYSTEM_SWRITER_UI_SCRIPT}.real" ] ; then rm -f "${SYSTEM_SWRITER_UI_SCRIPT}" dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${SYSTEM_SWRITER_UI_SCRIPT}" || true fi # INKSCAPE if [ -f "${SYSTEM_INKSCAPE_MO}.real" ] ; then rm -f "${SYSTEM_INKSCAPE_MO}" dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${SYSTEM_INKSCAPE_MO}" || true fi # Dr GEO if [ -f "${SYSTEM_DRGEO_MO}.real" ] ; then rm -f "${SYSTEM_DRGEO_MO}" dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${SYSTEM_DRGEO_MO}" || true fi # Musescore if [ -f "${MSCORE_SYSTEM_CONFIG_SCRIPT}.real" ] ; then rm -f "${MSCORE_SYSTEM_CONFIG_SCRIPT}" dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${MSCORE_SYSTEM_CONFIG_SCRIPT}" || true fi #if [ -f "${SMART_SYSTEM_CONFIG_SCRIPT}.real" ] ; then # rm -f "${SMART_SYSTEM_CONFIG_SCRIPT}" # dpkg-divert --package language-pack-gnome-qcv-base --rename --quiet --remove "${SMART_SYSTEM_CONFIG_SCRIPT}" || true #fi ;; esac #DEBHELPER#