1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

Remove fonts.dir when it is empty.

Spotted by:	QAT
This commit is contained in:
Hiroki Sato 2009-05-31 12:23:02 +00:00
parent e171c937c5
commit a740775726
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234902
7 changed files with 21 additions and 0 deletions
japanese
font-ipa/files
font-kochi/files
font-mplus-ipa/files
font-mplus/files
font-sazanami/files
font-ume/files
font-vlgothic/files

View File

@ -90,5 +90,8 @@ DEINSTALL)
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir
rm -f fonts.dir.tmp
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
rm -f fonts.dir
fi
;;
esac

View File

@ -90,5 +90,8 @@ DEINSTALL)
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir
rm -f fonts.dir.tmp
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
rm -f fonts.dir
fi
;;
esac

View File

@ -89,5 +89,8 @@ DEINSTALL)
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir
rm -f fonts.dir.tmp
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
rm -f fonts.dir
fi
;;
esac

View File

@ -98,6 +98,9 @@ DEINSTALL)
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir
rm -f fonts.dir.tmp
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
rm -f fonts.dir
fi
cd ${X_FONTSDIR}/misc
%%LOCALBASE%%/bin/mkfontdir ${X_FONTSDIR}/misc

View File

@ -86,5 +86,8 @@ DEINSTALL)
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir
rm -f fonts.dir.tmp
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
rm -f fonts.dir
fi
;;
esac

View File

@ -97,5 +97,8 @@ DEINSTALL)
exec < fonts.dir; rm -f fonts.dir
(echo "${_num}"; cat) > fonts.dir
chmod 0444 fonts.dir
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
rm -f fonts.dir
fi
;;
esac

View File

@ -85,5 +85,8 @@ DEINSTALL)
nfonts < fonts.dir.tmp > fonts.dir
cat fonts.dir.tmp >> fonts.dir
rm -f fonts.dir.tmp
if [ -r fonts.dir -a `wc -l < fonts.dir` = 1 ]; then
rm -f fonts.dir
fi
;;
esac