diff options
author | Kalev Lember <kalev@smartlink.ee> | 2008-09-26 11:29:12 +0000 |
---|---|---|
committer | Philip Balister <philip@balister.org> | 2008-09-26 11:29:12 +0000 |
commit | a5df3304571a5e04485e46c2cb0bcb4442367c3d (patch) | |
tree | 3faa7bdc8fc24d90fee2f0094c45b42aca2327d3 | |
parent | e8d84ae7689b744bf669c0dce32fe7800fce18ad (diff) |
ttf.inc : Unbreak ttf fonts
* Patch from bug #4584.
-rw-r--r-- | 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 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() { |