lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lilypond & Ubuntu Help


From: George_
Subject: Re: Lilypond & Ubuntu Help
Date: Mon, 18 Aug 2008 11:36:35 -0700 (PDT)

Thanks for the help guys. The script works perfectly, really nice idea.

George


Patrick Horgan wrote:
> 
> Jonathan Kulp wrote:
>> Ah.  It never occurred to me to try to allow for anything but the 
>> standard "lilypond filename.ly" command.  That's a good idea.  I don't 
>> use anything but the standard command very often, though, so I won't 
>> lose any sleep over it.  I *was* prepared to lose sleep over the fact 
>> that the output files weren't ending up in the right directory ;-) 
>> Glad to have figured that one out.
> Instead of basename you could use the built in string manipulation stuff 
> this:
> 
> # determines the source filename
> srcfile=`basename $1`
> 
> # removes the extension from source filename
> FILENOEXTENSION=${srcfile%.*}
> 
> # determines directory
> OUTDIR="`dirname $1`"
>  
> It does the same thing as basename, but more generally.  In particular 
> is says to strip off of the end of a string a pattern.  In this case our 
> pattern is simple, just a period followed by anything.
> 
> Patrick
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Lilypond---Ubuntu-Help-tp19022704p19035652.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]