Re: how to compile all ly-files including subfolders

2014-11-16 Thread Urs Liska
Don't fully see what you intend. But yes, you can do that, both from shell and Python scripts. If your script is executable you can call it like any other shell command or program. HTH Urs Am 17. November 2014 08:35:38 MEZ, schrieb Stefan Thomas : >Dear community, >thanks to You, especially to

Re: how to compile all ly-files including subfolders

2014-11-16 Thread Stefan Thomas
Dear community, thanks to You, especially to Urs and Ed. Both, the bash- and the python-script work very well and do their job. I would like to ask one last question: Can I execute also a script in my folder ~/bin/ , can I run a script in a script? ___ li

Re: how to compile all ly-files including subfolders

2014-11-15 Thread Noeck
> Also, I don't understand the need for the -o option when you are using > the default name. Which would boil down to: The -o option was because the output file should go in the same folder as the ly file and not in the present directory. Joram ___ li

Re: how to compile all ly-files including subfolders

2014-11-14 Thread Flaming Hakama by Elaine
> > Or even shorter, if slightly more arcane: find . -name '*ly' -exec sh -c 'ly={}; lilypond -o "${ly%.ly}" "$ly"' \; You might want to put the dot in your -name argument so you don't match .ily files. Also, I don't understand the need for the -o option when you are using the default name. W

Re: how to compile all ly-files including subfolders

2014-11-14 Thread MarcM
you may want to add the option delete-intermediate-files. -- View this message in context: http://lilypond.1069038.n5.nabble.com/how-to-compile-all-ly-files-including-subfolders-tp168692p168722.html Sent from the User mailing list archive at Nabble.com

Re: how to compile all ly-files including subfolders

2014-11-14 Thread Daniel Berjón Díez
On 14 November 2014 14:11, Ed Gordijn wrote: > Hi Urs, > > I'm not sure I do agree with your statement: > >> You can surely do what you want with a pure shell script, but Python may >> be cleaner to read > > The 'pure shell' script looks like this: > > #!/bin/bash > > shopt -s globstar

Re: how to compile all ly-files including subfolders

2014-11-14 Thread Jacques Menu
Hello Ed, I’d say that both the bash and Python scripts proposed are clean, the question is more whether they are clear for newcomers to scripting. So yes, there’s a learning curve there. Enjoy! JM > Le 14 nov. 2014 à 14:11:46, Ed Gordijn a écrit : > > Hi Urs, > > I'm not sure I do agree wi

Re: how to compile all ly-files including subfolders

2014-11-14 Thread Ed Gordijn
Hi Urs, I'm not sure I do agree with your statement: > You can surely do what you want with a pure shell script, but Python may be cleaner to read The 'pure shell' script looks like this: #!/bin/bash shopt -s globstar # to be able to use ** for sub-dirs for lyFile in **/*.

Re: how to compile all ly-files including subfolders

2014-11-13 Thread Urs Liska
Take the attachment as an inspiration - but without any warranty. Too late to do it right, no time either. It seems to work but hasn't been really tested. The script has to be somewhere in the PATH (e.g. in ~/bin) and takes the directory from which it is called as the root to be searched. cd

Re: how to compile all ly-files including subfolders

2014-11-13 Thread Stefan Thomas
Dear Urs, Yes, a python script would be fine. Is a Python script an option? > > You can surely do what you want with a pure shell script, but Python may > be cleaner to read? > > Best > Urs > > Am 13.11.2014 22:06, schrieb Stefan Thomas: > Dear Nick, thanks for Your reply. But Your command wri

Re: how to compile all ly-files including subfolders

2014-11-13 Thread Urs Liska
Is a Python script an option? You can surely do what you want with a pure shell script, but Python may be cleaner to read? Best Urs Am 13.11.2014 22:06, schrieb Stefan Thomas: Dear Nick, thanks for Your reply. But Your command writes the pdf-files to the folder, where it's executed. I want t

Re: how to compile all ly-files including subfolders

2014-11-13 Thread Stefan Thomas
Dear Nick, thanks for Your reply. But Your command writes the pdf-files to the folder, where it's executed. I want the pdf-files in the same folder as the ly-files. On 14/11/2014 06:39, Stefan Thomas wrote: > > Dear community, > > I would like to compile (on a Ubuntu-machine) all ly-files, includ

Re: how to compile all ly-files including subfolders

2014-11-13 Thread Nick Payne
On 14/11/2014 06:39, Stefan Thomas wrote: Dear community, I would like to compile (on a Ubuntu-machine) all ly-files, including those, which are in subfolders. How can I do this? cd to the parent folder, and issue the following command: find . -name '*.ly' -exec lilypond {} \; _

how to compile all ly-files including subfolders

2014-11-13 Thread Stefan Thomas
Dear community, I would like to compile (on a Ubuntu-machine) all ly-files, including those, which are in subfolders. How can I do this? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user