Mailinglist Archive: opensuse (3222 mails)

< Previous Next >
Re: [SLE] OT: test for filetype



On Sat, 05 Feb 2000, S.Toms wrote:
> I'm makeing an SRPM for xfstt and I need a good way to test for the
> existance of at least one .ttf file before it runs xfstt -sync, I thought
> of checking for the directory then checking for a *.ttf but it reports an
> error of too many files to process (130+ ttf's). Anybody have any thoughts
> on this?
>
> <snip>
> if test -f /usr/share/fonts/truetype/*.ttf ; then
> xfstt --sync
> fi
> <end snip>
>
> --
> S.Toms - tomas@xxxxxxxxxxxx - www.primenet.com/~tomas

You may know this already, and it doesn't really help with your problem, but
I've heard this question before. . .In case anyone out there doesn't know this
you can use the "file" command to get the type of most files. It could be
scripted to test files, but in the case of truetype fonts it returns a generic
label "raw G3 data, byte-padded" that's why I say it doesn't help you much.
Just thought it may help other newbies. I've been using Unix type systems for
several years now and I still think I am a newbie. Every new command helps.
:-)


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Darren R. Weber
drw@xxxxxxxxxxxx
ICQ# 2849193
http://drw.penguinpowered.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--
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