File: zenheiset

package info (click to toggle)
fonts-wqy-zenhei 0.9.45-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 16,708 kB
  • sloc: sh: 223; makefile: 24
file content (42 lines) | stat: -rwxr-xr-x 990 bytes parent folder | download | duplicates (4)
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
38
39
40
41
42
#!/bin/sh

###############################################
# Set WenQuanYi Zen Hei Default Display Styles
# 
# Qianqian Fang <fangq at nmr.mgh.harvard.edu>
###############################################

FAVAIL=/etc/fonts/conf.avail
FCONF=/etc/fonts/conf.d
BMPCONF=63-wqy-zenhei-sharp.conf
AACONF=64-wqy-zenhei.conf


if [ $# -ne 1 ]; then
     echo 1>&2 Usage: $0 \[aa\|bitmap\|bitmapfull\]
     exit 2
fi

if [ $1 = "aa" -o $1 = "bitmap" -o $1 = "bitmapfull" ]; then
     if [ -f "$FAVAIL/$AACONF" ]; then
	 ln -sf $FAVAIL/$AACONF $FCONF/$AACONF
	 rm -rf $FCONF/$BMPCONF
         rm -rf $FCONF/$BMPSTDCONF
     else
         echo $FAVAIL/$BMPCONF does not exist!
	 exit 2
     fi

     if [ $1 = "bitmap" -o $1 = "bitmapfull" ]; then
         if [ -f "$FAVAIL/$BMPCONF" ]; then
             ln -sf $FAVAIL/$BMPCONF $FCONF/$BMPCONF
         else
             echo $FAVAIL/$BMPCONF does not exist!
             exit 2
         fi
     fi
else
     echo $1 is not a valid option
fi

exit 0