This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: postinstall-lilypond.sh
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin at cygwin dot com
- Date: Tue, 28 Dec 2004 14:27:15 -0500 (EST)
- Subject: Re: postinstall-lilypond.sh
- References: <Pine.CYG.4.58.0412281038290.4076@fordpc.vss.fsi.com>
- Reply-to: cygwin at cygwin dot com
On Tue, 28 Dec 2004, Brian Ford wrote:
> Cosmetic note for maintainer:
>
> [snip]
> # cleanup old fonts
> rm $(find /var/lib/texmf /var/spool/texmf /var/cache/fonts -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm')
> [\snip]
>
> find: /var/lib/texmf: No such file or directory
> find: /var/spool/texmf: No such file or directory
> rm: too few arguments
> Try `rm --help' for more information.
>
> Maybe add a -f to rm? That would eliminate one of the error messages.
>
> As for the directory errors from find, I'm not sure how to avoid
> them without pre-testing for their existance in the script and
> setting a variable appropriately. I understand that may add too much
> complexity just to avoid a harmless error message.
find /var/lib/texmf /var/spool/texmf /var/cache/fonts \
-name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or \
-name 'parmesan*tfm' 2>/dev/null | xargs -r rm
should do it. If you're paranoid, use -print0 and give xargs the -0 arg.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/