diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2004-01-15 17:30:42 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2004-01-15 17:30:42 +0000 |
commit | 95713724b9c7d78d117e1c3d7fcf8d866d862084 (patch) | |
tree | 5da6d813ff82b01bb5a142e0d3490f40a8bab9ec /japanese/motoya-ttfonts/pkg-install | |
parent | 6a9264b0478ad491d36237a59ee05eb5ba9f3890 (diff) | |
download | ports-95713724b9c7d78d117e1c3d7fcf8d866d862084.tar.gz ports-95713724b9c7d78d117e1c3d7fcf8d866d862084.zip |
Notes
Diffstat (limited to 'japanese/motoya-ttfonts/pkg-install')
-rw-r--r-- | japanese/motoya-ttfonts/pkg-install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/japanese/motoya-ttfonts/pkg-install b/japanese/motoya-ttfonts/pkg-install new file mode 100644 index 000000000000..515bfa7dbdaa --- /dev/null +++ b/japanese/motoya-ttfonts/pkg-install @@ -0,0 +1,18 @@ +#!/bin/sh +FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType +if [ "$2" = "PRE-INSTALL" ]; then + echo "Please add ${FONTDIR} to your /etc/XF86Config file" + exit 0 +fi +cd ${FONTDIR} +touch fonts.dir +sed -e '/-motoya-/d' fonts.dir > fonts.dir.tmp +numfonts=$(echo $(cat fonts.dir.tmp fonts.dir.motoya | wc -l) - 2 | bc) +echo ${numfonts} > fonts.dir +sed -e 1d fonts.dir.tmp >> fonts.dir +sed -e 1d fonts.dir.motoya >> fonts.dir +touch fonts.alias +sed -e '/^-motoya-/d' fonts.alias > fonts.alias.tmp +mv -f fonts.alias.tmp fonts.alias +cat fonts.alias.motoya >> fonts.alias +rm -f fonts.dir.tmp fonts.alias.tmp |