aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2009-05-31 12:23:02 +0000
committerHiroki Sato <hrs@FreeBSD.org>2009-05-31 12:23:02 +0000
commita740775726b6939e7ffc8234faab78bf39f31e36 (patch)
treed45ad66675dc085e291762fcd6b8401ea6de6b05
parente171c937c58befcd8e80400481fee3162b29a136 (diff)
downloadports-a740775726b6939e7ffc8234faab78bf39f31e36.tar.gz
ports-a740775726b6939e7ffc8234faab78bf39f31e36.zip
Notes
-rw-r--r--japanese/font-ipa/files/pkg-install.in3
-rw-r--r--japanese/font-kochi/files/pkg-install.in3
-rw-r--r--japanese/font-mplus-ipa/files/pkg-install.in3
-rw-r--r--japanese/font-mplus/files/pkg-install.in3
-rw-r--r--japanese/font-sazanami/files/pkg-install.in3
-rw-r--r--japanese/font-ume/files/pkg-install.in3
-rw-r--r--japanese/font-vlgothic/files/pkg-install.in3
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