diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-03-29 01:50:56 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-03-29 01:50:56 +0000 |
commit | 22c4550a1fce7af724018a2193bd99af8f5fd977 (patch) | |
tree | 410ff0fc31b579f2819ed2ad3c8d3ffeb846dd80 /japanese/font-mplus/pkg-req | |
parent | 24b7d817bd4b62df0451d98c14e37701d31b8325 (diff) | |
download | ports-22c4550a1fce7af724018a2193bd99af8f5fd977.tar.gz ports-22c4550a1fce7af724018a2193bd99af8f5fd977.zip |
Notes
Diffstat (limited to 'japanese/font-mplus/pkg-req')
-rw-r--r-- | japanese/font-mplus/pkg-req | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/japanese/font-mplus/pkg-req b/japanese/font-mplus/pkg-req index fd576dda5c63..edbbd887baac 100644 --- a/japanese/font-mplus/pkg-req +++ b/japanese/font-mplus/pkg-req @@ -21,19 +21,15 @@ fi # font alias entry here! TMPFILE=/tmp/install-fonts-alias-$$ -cat << EOF > ${TMPFILE} --mplus-gothic-medium-r-normal--13-120-75-75-c-120-jisx0208.1983-0 -mplus-gothic-medium-r-normal--13-120-75-75-c-120-jisx0208.1990-0 --mplus-gothic-bold-r-normal--13-120-75-75-c-120-jisx0208.1983-0 -mplus-gothic-bold-r-normal--13-120-75-75-c-120-jisx0208.1990-0 -EOF +for i in fonts.alias.e fonts.alias.j fonts.alias.euro ; do + cat ${PKG_PREFIX}/share/doc/mplusfonts/${i} >> ${TMPFILE} +done -echo "Updating ${FONTDIR}/fonts.alias" -cd ${FONTDIR} -touch fonts.alias -cp fonts.alias fonts.alias.orig -if [ "$2" = "INSTALL" ] ; then - (grep -v -e "`cat ${TMPFILE}`" fonts.alias.orig ; \ - cat ${TMPFILE}) > fonts.alias -elif [ "$2" = "DEINSTALL" ] ; then +if [ "$2" = "DEINSTALL" ] ; then + echo "Updating ${FONTDIR}/fonts.alias" + cd ${FONTDIR} + touch fonts.alias + cp fonts.alias fonts.alias.orig grep -v -e "`cat ${TMPFILE}`" fonts.alias.orig > fonts.alias fi rm -f fonts.alias.orig ${TMPFILE} |