Mailinglist Archive: opensuse (3222 mails)

< Previous Next >
[SLE] Re: OT: test for filetype
  • From: tomas@xxxxxxxxxxxx (S.Toms)
  • Date: Sat, 5 Feb 2000 18:12:10 -0800 (PST)
  • Message-id: <Pine.LNX.4.10.10002051809300.26328-100000@xxxxxxxxxxxxxxxxxxxx>



On Sun, 6 Feb 2000, Stefan Troeger wrote:

st> Hi,
st>
st> On Sat, Feb 05, 2000 at 16:09 -0800, S.Toms wrote:
st>
st> > I'm makeing an SRPM for xfstt and I need a good way to test for the
st> > existance of at least one .ttf file before it runs xfstt -sync, I thought
st> > of checking for the directory then checking for a *.ttf but it reports an
st> > error of too many files to process (130+ ttf's). Anybody have any thoughts
st> > on this?
st> >
st> > <snip>
st> > if test -f /usr/share/fonts/truetype/*.ttf ; then
st> > xfstt --sync
st> > fi
st> > <end snip>
st>
st> for x in /usr/share/fonts/truetype/*.[tT][tT][fF]; do
st> if test -f "$x"; then
st> xfstt --sync
st> break
st> fi
st> done
st>
st> It's kind of ugly but it works.
st>

Your right, ugly as hell, but does work :)

xfstt ##################################################
Postinstall xfstt-1...
xfstt: sync in directory "/usr/share/fonts/truetype/."
Found 136 fonts.

Totally installed: 1

thanks again :)

st> Ciao,
st> Stefan
st>
st>


--
S.Toms - tomas@xxxxxxxxxxxx - www.primenet.com/~tomas
SuSE Linux v6.3+ - Kernel 2.2.14

Join the march to save individuality!

--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/


< Previous Next >
References