preinst 1.63 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# Copyright (C) 2011-2012 Centro de Computacao Cientifica e Software Livre
# 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.
#!/bin/bash
# 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.

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
 $GNOMEICONSCONTRAST/start-here.svg \
38
 $GNOMEICONS/scalable/status/dialog-information-symbolic.svg \
Michael Liang's avatar
Michael Liang committed
39
 $GNOMECONTROL/UbuntuLogo.png \
40
41
42
43
44
45
46
47
 "

# Divert files
for file in $divertList; do
        dpkg-divert --package le-interface --add --rename \
                    --divert $file{.real,}
done