diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2015-09-12 23:13:05 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2015-09-12 23:13:05 +0000 |
commit | 5a316c4cdd4b3186ebbe10e79efae81f4075d8d0 (patch) | |
tree | 6cf82796d51091b2920e4b0426df299172d0ef2b /japanese/font-ipa/files/pkg-install.in | |
parent | 673ac30b79655029f878b0f4c5920a9a93200b2a (diff) |
Fix fonts.dir. It was totally broken since r381876.
Notes
Notes:
svn path=/head/; revision=396784
Diffstat (limited to 'japanese/font-ipa/files/pkg-install.in')
-rw-r--r-- | japanese/font-ipa/files/pkg-install.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/japanese/font-ipa/files/pkg-install.in b/japanese/font-ipa/files/pkg-install.in index 7ae9e47a80bc..3df544eff523 100644 --- a/japanese/font-ipa/files/pkg-install.in +++ b/japanese/font-ipa/files/pkg-install.in @@ -1,8 +1,6 @@ #!/bin/sh # $FreeBSD$ -FONTSDIR=%%FONTSDIR%%/OTF - catfontsdir () { while read _IN @@ -77,7 +75,7 @@ nfonts () case "$2" in POST-INSTALL) - cd ${FONTSDIR} + cd %%FONTSDIR%% touch fonts.dir (catfontsdir < fonts.dir; addentries) > fonts.dir.tmp nfonts < fonts.dir.tmp > fonts.dir @@ -85,7 +83,7 @@ POST-INSTALL) rm -f fonts.dir.tmp ;; POST-DEINSTALL) - cd ${FONTSDIR} + cd %%FONTSDIR%% catfontsdir < fonts.dir > fonts.dir.tmp nfonts < fonts.dir.tmp > fonts.dir cat fonts.dir.tmp >> fonts.dir |