|
From: | Carl Peterson |
Subject: | Re: Question about autocompile bash script |
Date: | Tue, 10 Sep 2013 09:05:49 -0400 |
If there were some kind of make-dep for lilypond it could even generate these dependenciesautomaticaly, like it happens for C (the compiler generates dependencies when passed thecorrect flags). This should not be too hard to brew up?ImmanuelOn Tue, Sep 10, 2013 at 10:47 AM, Jacques Menu <address@hidden> wrote:
Hello Carl,
An approach could be to create a makefile containing:
- the rules to compile LP files to PDF (fixed part);
- the dependencies among LP files reflecting the presence of \include in them (variable part).
Producing the makefile could be done by a script when your dropbox changes, and you could then call "make" to compile whatever needs to be.
JM
Le 10 sept. 2013 à 10:04:54, ArnoldTheresius <address@hidden> a écrit :
> I allready made a C program for Windows, which does a limited 'follow the
> \include files' to examine the file dates. Finally it starts lilypond
> (command line) if one of the source files found is newer than the resulting
> PDF, otherwise it prompts for the question 'compile or not?'.
> This program is limited to
> - only files (source and result) in the current working directory are
> examined
> - the \include command must be the only one in the line (white space only
> allowed at the left), exactly one space to the string start '"' character
> - \include commands inside a comment block ( '%{' to '%}' ) will be
> examined, too.
>
> Unfortunately, this program is specialized for my use. I did try (but not
> complete) to implement some special features. There is very little
> documentation in the source code.
> Only if you have some experiance in C programming the source code can help -
> but an experianced C programmer might be faster to build his own 'ly-newer'
> command line program form scratch than by extending my program.
>
> Feel free to ask for the C source code, if you are still interested.
>
[Prev in Thread] | Current Thread | [Next in Thread] |