mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
Fix post install script
PR: 199113 Reported by: hiroto.kagotani@gmail.com
This commit is contained in:
parent
cc46d9987f
commit
a8c33abc42
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=383417
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= ricty
|
||||
PORTVERSION= 3.2.4
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= japanese x11-fonts
|
||||
PKGNAMEPREFIX= ja-font-
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
X_FONTSDIR=%%X_FONTSDIR%%/TTF
|
||||
|
||||
catfontsdir ()
|
||||
{
|
||||
while read _IN
|
||||
@ -86,7 +84,7 @@ nfonts ()
|
||||
|
||||
case "$2" in
|
||||
POST-INSTALL)
|
||||
cd ${X_FONTSDIR}
|
||||
cd ${FONTSDIR}
|
||||
touch fonts.dir
|
||||
(sed 1d fonts.dir | catfontsdir; addentries) > fonts.dir.tmp
|
||||
nfonts < fonts.dir.tmp > fonts.dir
|
||||
@ -94,7 +92,7 @@ POST-INSTALL)
|
||||
rm -f fonts.dir.tmp
|
||||
;;
|
||||
POST-DEINSTALL)
|
||||
cd ${X_FONTSDIR}
|
||||
cd ${FONTSDIR}
|
||||
sed 1d fonts.dir | catfontsdir > fonts.dir.tmp
|
||||
nfonts < fonts.dir.tmp > fonts.dir
|
||||
cat fonts.dir.tmp >> fonts.dir
|
||||
@ -102,6 +100,5 @@ POST-DEINSTALL)
|
||||
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
|
||||
rm -f fonts.dir
|
||||
fi
|
||||
rmdir ${X_FONTSDIR} > /dev/null 2>&1 || true
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user