diff options
author | hrs <hrs@FreeBSD.org> | 2009-05-31 20:23:02 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2009-05-31 20:23:02 +0800 |
commit | edb2ea0c789190e577a3ad7e4a0e9745e7f056ee (patch) | |
tree | 22cbb7d6c68f33d9970899b90665c0a2773b769a /japanese | |
parent | 25e4163defb1130f0f23782df1e2bc6a9698a818 (diff) | |
download | freebsd-ports-gnome-edb2ea0c789190e577a3ad7e4a0e9745e7f056ee.tar.gz freebsd-ports-gnome-edb2ea0c789190e577a3ad7e4a0e9745e7f056ee.tar.zst freebsd-ports-gnome-edb2ea0c789190e577a3ad7e4a0e9745e7f056ee.zip |
Remove fonts.dir when it is empty.
Spotted by: QAT
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/font-ipa/files/pkg-install.in | 3 | ||||
-rw-r--r-- | japanese/font-kochi/files/pkg-install.in | 3 | ||||
-rw-r--r-- | japanese/font-mplus-ipa/files/pkg-install.in | 3 | ||||
-rw-r--r-- | japanese/font-mplus/files/pkg-install.in | 3 | ||||
-rw-r--r-- | japanese/font-sazanami/files/pkg-install.in | 3 | ||||
-rw-r--r-- | japanese/font-ume/files/pkg-install.in | 3 | ||||
-rw-r--r-- | japanese/font-vlgothic/files/pkg-install.in | 3 |
7 files changed, 21 insertions, 0 deletions
diff --git a/japanese/font-ipa/files/pkg-install.in b/japanese/font-ipa/files/pkg-install.in index 5532f169b572..cfd96140e447 100644 --- a/japanese/font-ipa/files/pkg-install.in +++ b/japanese/font-ipa/files/pkg-install.in @@ -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 diff --git a/japanese/font-kochi/files/pkg-install.in b/japanese/font-kochi/files/pkg-install.in index 97ab380f2c71..48ab317e8a8c 100644 --- a/japanese/font-kochi/files/pkg-install.in +++ b/japanese/font-kochi/files/pkg-install.in @@ -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 diff --git a/japanese/font-mplus-ipa/files/pkg-install.in b/japanese/font-mplus-ipa/files/pkg-install.in index 2f9a85233b1f..553ab957fe82 100644 --- a/japanese/font-mplus-ipa/files/pkg-install.in +++ b/japanese/font-mplus-ipa/files/pkg-install.in @@ -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 diff --git a/japanese/font-mplus/files/pkg-install.in b/japanese/font-mplus/files/pkg-install.in index 0db369db75c4..f023db2a2d5b 100644 --- a/japanese/font-mplus/files/pkg-install.in +++ b/japanese/font-mplus/files/pkg-install.in @@ -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 diff --git a/japanese/font-sazanami/files/pkg-install.in b/japanese/font-sazanami/files/pkg-install.in index 2abccc27ac7e..8e2e77ee5ac3 100644 --- a/japanese/font-sazanami/files/pkg-install.in +++ b/japanese/font-sazanami/files/pkg-install.in @@ -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 diff --git a/japanese/font-ume/files/pkg-install.in b/japanese/font-ume/files/pkg-install.in index ae681a45ad70..56994519c7b0 100644 --- a/japanese/font-ume/files/pkg-install.in +++ b/japanese/font-ume/files/pkg-install.in @@ -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 diff --git a/japanese/font-vlgothic/files/pkg-install.in b/japanese/font-vlgothic/files/pkg-install.in index 40a459d2bfbc..ec205277dbf7 100644 --- a/japanese/font-vlgothic/files/pkg-install.in +++ b/japanese/font-vlgothic/files/pkg-install.in @@ -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 |