Debian Codegraph @

zenheiset

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 ###############################################
4 # Set WenQuanYi Zen Hei Default Display Styles
5 #
6 # Qianqian Fang <fangq at nmr.mgh.harvard.edu>
7 ###############################################
8
9 FAVAIL=/etc/fonts/conf.availscip-shell filesystem . . `/etc/fonts/conf.avail`.
10 FCONF=/etc/fonts/conf.dscip-shell filesystem . . `/etc/fonts/conf.d`.
•11 BMPCONF=63-wqy-zenhei-sharp.conf
12 AACONF=64-wqy-zenhei.conf
13
14
15 if [scip-shell system . . `[`. $# -ne 1 ]; then
16 echoscip-shell system . . echo. 1>&2 Usage: $0 \[aa\|bitmap\|bitmapfull\]
17 exit 2
18 fi
19
20 if [scip-shell system . . `[`. $1 = "aa" -o $1 = "bitmap" -o $1 = "bitmapfull" ]; then
21 if [scip-shell system . . `[`. -f "$FAVAIL/$AACONF" ]; then
22 lnscip-shell system . . ln. -sf $FAVAIL/$AACONF $FCONF/$AACONF
23 rmscip-shell system . . rm. -rf $FCONF/$BMPCONF
24 rmscip-shell system . . rm. -rf $FCONF/$BMPSTDCONF
25 else
26 echoscip-shell system . . echo. $FAVAIL/$BMPCONF does not exist!
27 exit 2
28 fi
29
30 if [scip-shell system . . `[`. $1 = "bitmap" -o $1 = "bitmapfull" ]; then
31 if [scip-shell system . . `[`. -f "$FAVAIL/$BMPCONF" ]; then
32 lnscip-shell system . . ln. -sf $FAVAIL/$BMPCONF $FCONF/$BMPCONF
33 else
34 echoscip-shell system . . echo. $FAVAIL/$BMPCONF does not exist!
35 exit 2
36 fi
37 fi
38 else
39 echoscip-shell system . . echo. $1 is not a valid option
40 fi
41
42 exit 0