[oe-commits] : ttf.inc : Unbreak ttf fonts
OE GIT Trial
gittrial at amethyst.openembedded.net
Fri Sep 26 11:36:47 UTC 2008
Module: OE.dev
Branch: master
Commit: f4b81e704bc944c93bd9770fc522005667c0c2c8
URL: http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=f4b81e704bc944c93bd9770fc522005667c0c2c8
Author: <kalev at smartlink.ee>
Date: Fri Sep 26 11:29:12 2008 +0000
ttf.inc : Unbreak ttf fonts
* Patch from bug #4584.
---
packages/ttf-fonts/ttf.inc | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/packages/ttf-fonts/ttf.inc b/packages/ttf-fonts/ttf.inc
index 98bd5b8..e2be378 100644
--- a/packages/ttf-fonts/ttf.inc
+++ b/packages/ttf-fonts/ttf.inc
@@ -4,12 +4,10 @@ RRECOMMENDS += "font-update-common"
do_install() {
install -d ${D}${datadir}/fonts/truetype/
- if [ -e *.ttf ]; then
- install -m 0644 *.ttf ${D}${datadir}/fonts/truetype/
- fi
- if [ -e *.ttc ]; then
- install -m 0644 *.ttc ${D}${datadir}/fonts/truetype/
- fi
+ for f in *.ttf *.ttc
+ do
+ [ -f $f ] && install -m 0644 $f ${D}${datadir}/fonts/truetype/
+ done
}
pkg_postinst_append() {
More information about the Openembedded-commits
mailing list