aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ttf-fonts
diff options
context:
space:
mode:
authorKalev Lember <kalev@smartlink.ee>2008-09-26 11:29:12 +0000
committerPhilip Balister <philip@balister.org>2008-09-26 11:29:12 +0000
commita5df3304571a5e04485e46c2cb0bcb4442367c3d (patch)
tree3faa7bdc8fc24d90fee2f0094c45b42aca2327d3 /packages/ttf-fonts
parente8d84ae7689b744bf669c0dce32fe7800fce18ad (diff)
downloadopenembedded-a5df3304571a5e04485e46c2cb0bcb4442367c3d.tar.gz
ttf.inc : Unbreak ttf fonts
* Patch from bug #4584.
Diffstat (limited to 'packages/ttf-fonts')
-rw-r--r--packages/ttf-fonts/ttf.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/ttf-fonts/ttf.inc b/packages/ttf-fonts/ttf.inc
index 98bd5b820d..e2be378194 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() {