diff options
author | foxfair <foxfair@FreeBSD.org> | 1999-10-19 07:58:46 +0000 |
---|---|---|
committer | foxfair <foxfair@FreeBSD.org> | 1999-10-19 07:58:46 +0000 |
commit | 7625fe6a0b87625ff95eccd4405689c6aebbbe8d (patch) | |
tree | 1c22847ad2191a512821fd0585befbc62e0bee21 /chinese/moettf | |
parent | c13b25309e5865cf9f6ce861fbfa4e1ce07fd4bc (diff) | |
download | FreeBSD-ports-7625fe6a0b87625ff95eccd4405689c6aebbbe8d.zip FreeBSD-ports-7625fe6a0b87625ff95eccd4405689c6aebbbe8d.tar.gz |
PR: 14392
Submitted by: Keith Jang <jtjang@gcn.net.tw>
Fix a bug when install this port : fons.dir has an error.
Diffstat (limited to 'chinese/moettf')
-rw-r--r-- | chinese/moettf/pkg-install | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/chinese/moettf/pkg-install b/chinese/moettf/pkg-install index 8240826..53514e6 100644 --- a/chinese/moettf/pkg-install +++ b/chinese/moettf/pkg-install @@ -9,11 +9,18 @@ cd ${FONTDIR} echo "Updating fonts.dir & fonts.alias. This may take a while..." # Update fonts.dir touch fonts.dir -sed -e '/-moe-/d' -e '/-twmoe-/d' fonts.dir > fonts.dir.tmp +sed -e '/ -moe-/d' -e '/ -twmoe-/d' fonts.dir > fonts.dir.tmp # Add 12 new fonts numfonts=$(echo $(cat fonts.dir.tmp |wc -l) - 1 + 12 |bc) -echo ${numfonts} > fonts.dir -sed -e 1d fonts.dir.tmp >> fonts.dir +if [ ${numfonts} -le 12 ]; then # fonts.dir.tmp is empty + echo 12 > fonts.dir +else + echo ${numfonts} > fonts.dir + sed -e 1d fonts.dir.tmp >> fonts.dir +fi +rm -f fonts.dir.tmp + +# Write font information to fonts.dir for FAMILY in kai lishu sung do echo moe_${FAMILY}.ttf -twmoe-${FAMILY}-medium-r-normal--0-0-0-0-c-0-big5-0 >> fonts.dir @@ -21,7 +28,6 @@ do echo ai=0.3:moe_${FAMILY}.ttf -twmoe-${FAMILY}-medium-i-normal--0-0-0-0-c-0-big5-0 >> fonts.dir echo ab=y:ai=0.3:moe_${FAMILY}.ttf -twmoe-${FAMILY}-bold-i-normal--0-0-0-0-c-0-big5-0 >> fonts.dir done -rm -f fonts.dir.tmp # Update fonts.alias, font size ranges from 8 to 128. SIZE=8 |