source: lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-common.prerm @ 3293

Last change on this file since 3293 was 3293, checked in by hectorgh, 3 years ago

trying to fix whiskermenu translation

File size: 1.8 KB
Line 
1#!/bin/bash
2
3set -e
4
5
6if [ "$1" = "remove" ] ; then
7        PKG="lliurex-artwork-defaults-common"
8
9        #ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
10        #NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
11        #LLIUREX_ES_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/es/xfce4-whiskermenu-plugin.mo"
12
13        #ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.mo"
14        #NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/xfce4-whiskermenu-plugin.diverted"
15        #LLIUREX_CA_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/ca/xfce4-whiskermenu-plugin.mo"
16
17
18        ORIGINAL_WHISKER_ES_FILE="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
19        NEW_DIVERTED_ES_FILE="/usr/share/locale/es/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
20        LLIUREX_ES_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/es/xfce4-whiskermenu-plugin.mo"
21
22        ORIGINAL_WHISKER_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo"
23        NEW_DIVERTED_CA_FILE="/usr/share/locale/ca/LC_MESSAGES/mate-xfce4-panel-plugin-loader-applet.mo.diverted"
24        LLIUREX_CA_FILE="/usr/share/lliurex-artwork-defaults/whiskermenu/locale/ca/xfce4-whiskermenu-plugin.mo"
25
26
27        if [ -L "$ORIGINAL_WHISKER_ES_FILE" ]; then
28                rm -rf "$ORIGINAL_WHISKER_ES_FILE" || true
29                dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_ES_FILE" "$ORIGINAL_WHISKER_ES_FILE"
30
31        fi
32
33        if [ -L "$ORIGINAL_WHISKER_CA_FILE" ]; then
34
35                rm -rf "$ORIGINAL_WHISKER_CA_FILE" || true 
36                dpkg-divert --remove --package ${PKG} --rename --divert "$NEW_DIVERTED_CA_FILE" "$ORIGINAL_WHISKER_CA_FILE"
37
38        fi
39
40
41fi
42#DEBHELPER#
43
44exit 0
Note: See TracBrowser for help on using the repository browser.