summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/terminus-font/install.proto
blob: 37f0b55d2dfe66e7812ab687095ad4060250027a (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
# arg 1: the new package version 
 post_install() {
 echo -n "Updating font cache... " 
 /usr/bin/fc-cache
 cd /usr/share/fonts/local
 /usr/bin/mkfontdir
 /usr/bin/mkfontscale
# cp ../encodings/encodings.dir ./encodings.dir
 echo "done."
 echo "Note that local fonts are now (with xorg-7.0) in /usr/share/fonts/local/"
 }

# # arg 1: the new package version 
# # arg 2: the old package version 
 post_upgrade() { 
 post_install $1 
 } 
#
# # arg 1: the old package version 
 post_remove() { 
 /usr/bin/fc-cache
 } 

op=$1 
shift 

$op $*