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:
parent
e171c937c5
commit
a740775726
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234902
japanese
font-ipa/files
font-kochi/files
font-mplus-ipa/files
font-mplus/files
font-sazanami/files
font-ume/files
font-vlgothic/files
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user