blob: 5b25ff098f32779639d9e11d54d392a5faa0d09c (
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
|
# arg 1: the new package version
post_install() {
/usr/bin/fc-cache
# the following is ineffective unless install is done in the foreground, locally
/usr/bin/xset fp+ /usr/share/fonts/3270 fp rehash
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
pre_remove $1
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}
# arg 1: the old package version
pre_remove() {
# the following is ineffective unless uninstall is done in the foreground, locally
/usr/bin/xset fp- /usr/share/fonts/3270 fp rehash
/bin/true
}
# arg 1: the old package version
post_remove() {
/usr/bin/fc-cache
}
op=$1
shift
$op $*
|