diff options
Diffstat (limited to '')
-rw-r--r-- | chinese/CJK/scripts/post-install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chinese/CJK/scripts/post-install b/chinese/CJK/scripts/post-install new file mode 100644 index 000000000000..bbd2fc7fa498 --- /dev/null +++ b/chinese/CJK/scripts/post-install @@ -0,0 +1,21 @@ +#!/bin/sh +PATH=/bin:/usr/bin + +TeX_FONT_PATH=${PREFIX}/share/texmf/fonts +export TeX_FONT_PATH + +# +# Creating Chinese TTF & HBF font directories +# +if [ ! -d ${TeX_FONT_PATH}/truetype/chinese ]; +then mkdir -p ${TeX_FONT_PATH}/truetype/chinese; fi +if [ ! -d ${TeX_FONT_PATH}/hbf/chinese ]; +then mkdir -p ${TeX_FONT_PATH}/hbf/chinese; fi + +# +# Install ntu_kai.ttf if USE_NTUTTF is defined. +# +if [ ${USE_NTUTTF} ] +then + install -o root -g wheel -m 644 ${WRKDIR}/ntu_kai.ttf ${TeX_FONT_PATH}/truetype/chinese +fi |