postrm 1.75 KB
Newer Older
1
#!/bin/bash
2
3
#
# Copyright (C) 2004-2010 Centro de Computacao Cientifica e Software Livre
4
5
6
7
8
9
10
11
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-interface
#
# le-interface is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
12
#
13
14
15
16
17
18
19
20
21
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
22
23
24
25

# Paths
GNOMESHELL="/usr/share/gnome-shell"
GNOMEICONS="/usr/share/icons/gnome"
26
GNOMEICONSCONTRAST="/usr/share/icons/HighContrast/scalable/places"
Michael Liang's avatar
Michael Liang committed
27
GNOMECONTROL="/usr/share/gnome-control-center/ui"
28
29
30
31
32
33
34
35
36

# List of files to divert
divertList="
 $GNOMESHELL/theme/gnome-shell.css \
 $GNOMESHELL/js/ui/panel.js \
 $GNOMESHELL/js/ui/dateMenu.js \
 $GNOMEICONS/22x22/places/ubuntu-logo.png \
 $GNOMEICONS/24x24/places/ubuntu-logo.png \
 $GNOMEICONS/32x32/places/ubuntu-logo.png \
37
 $GNOMEICONS/scalable/status/dialog-information-symbolic.svg \
38
 $GNOMEICONSCONTRAST/start-here.svg \
Michael Liang's avatar
Michael Liang committed
39
 $GNOMECONTROL/UbuntuLogo.png \
40
41
42
43
44
45
46
47
48
49
50
51
52
 "

# Divert files
if [[ "$1" != "upgrade" ]]; then
    for file in $divertList; do
        if test -e $file.real; then
            rm -f $file
            dpkg-divert --package le-interface --remove --rename \
                        --divert $file{.real,}
        fi
    done
fi