1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

PR: 14392

Submitted by:		Keith Jang <jtjang@gcn.net.tw>
Fix a bug when install this port : fons.dir has an error.
This commit is contained in:
Foxfair Hu 1999-10-19 07:58:46 +00:00
parent fb7af6f176
commit 5c632b5f21
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=22520

View File

@ -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