blob: 62ce80440970498c307d83bab4401f8156cd68e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
infodir=/usr/share/info
filelist=(pcb.info pcb.info-1 pcb.info-2)
post_install() {
if [ -x /usr/bin/update-mime-database ]; then
echo Updating mime database...
/usr/bin/update-mime-database /usr/share/mime
fi
if [ -x /usr/bin/update-desktop-database ]; then
echo Updating desktop database..
/usr/bin/update-desktop-database /usr/share/applications
fi
if [ -x /usr/bin/install-info ]; then
echo Updating info directory...
for file in ${filelist[@]}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
fi
/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor
}
post_upgrade() {
post_install $1
}
pre_remove() {
if [ -x /usr/bin/install-info ]; then
echo Updating info directory...
for file in ${filelist[@]}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
fi
}
post_remove() {
/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor
}
|