bug-lilypond
[Top][All Lists]
Advanced

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

Re: lilypond --output=directory is not working


From: Federico Bruni
Subject: Re: lilypond --output=directory is not working
Date: Mon, 26 Mar 2018 07:50:57 +0200



Il giorno sab 10 mar 2018 alle 19:06, Federico Bruni <address@hidden> ha scritto:


Il giorno sab 10 mar 2018 alle 18:18, David Wright <address@hidden> ha scritto:
On Sat 10 Mar 2018 at 16:58:37 (+0100), Federico Bruni wrote:


 Il giorno sab 10 mar 2018 alle 16:26, David Wright
 <address@hidden> ha scritto:
 >On Sat 10 Mar 2018 at 09:18:59 (+0100), Federico Bruni wrote:
 >> [...]
 >
 >> The documentation in Usage 1,2 is pretty clear:
 >>
 >> -o, --output=FILE or FOLDER
 >
 >I don't recognise this. What is Usage 1,2?

 It's chapter 1.2 of Usage manual.
 Sorry, a typo.. and I should have put a link instead.

Interesting, so the manual and the man page disagree with each other.


Good catch, I've added an issue in the tracker:
https://sourceforge.net/p/testlilyissues/issues/5288/



 No, it's not this.
See my last email. The problem occurs only in the /tmp directory. It
 happens on Debian as well (not only in Fedora).

That helps. Now we can make comparisons. It isn't just the source file
whose path is forgotten. When LP changes directory to the output
directory, it loses the / at the beginning of the previous working
directory.

[...]

Waiting for comments from developers here.
I've added bug-lilypond in Cc.


Here's another example of how --output may give unexpected results.
I wonder if this should be better documented or the feature improved...

[output-option]$ tree .
.
|-- Makefile
|-- out
`-- pieces
   |-- hello.ily
   `-- hello.ly

2 directories, 3 files
[output-option]$
[output-option]$ cat pieces/hello.ily
\version "2.18.2"

music = \relative {
 c' d e f
}

myScore = \score {
 \new Staff {
   \music
 }
}
[output-option]$
[output-option]$ cat pieces/hello.ly
\version "2.18.2"

\include "hello.ily"

\header {
 title = "Hello"
}

\myScore



Here's the error:

[output-option]$ lilypond --output=out pieces/hello.ly
GNU LilyPond 2.19.81
Changing working directory to: `out'
Processing `pieces/hello.ly'
Parsing...
/home/fede/tmp/lilypond/output-option/pieces/hello.ly:3:10: error: cannot find file: `hello.ily' (search path: `pieces:/home/fede/tmp/lilypond/output-option:/usr/share/lilypond/2.19.81/fonts/svg/:/usr/share/lilypond/2.19.81/fonts/type1/:/usr/share/lilypond/2.19.81/fonts/otf/:/usr/share/lilypond/2.19.81/scm:/usr/share/lilypond/2.19.81/ps:/usr/share/lilypond/2.19.81/ly:')
\include
        "hello.ily"
/home/fede/tmp/lilypond/output-option/pieces/hello.ly:9:1: error: unknown escaped string: `\myScore'

\myScore
/home/fede/tmp/lilypond/output-option/pieces/hello.ly:9:9: error: syntax error, unexpected end of input, expecting '.' or '=' or ','
\myScore

fatal error: failed files: "pieces/hello.ly"


You see that there's pieces in the search path, but it's not the full path.
So this is a possible workaround:

[output-option]$ lilypond --output=out `pwd`/pieces/hello.ly
GNU LilyPond 2.19.81
Changing working directory to: `out'
Processing `/home/fede/tmp/lilypond/output-option/pieces/hello.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/tmp/lilypond-bs9QAF'...
Converting to `hello.pdf'...
Deleting `/tmp/lilypond-bs9QAF'...
Success: compilation successfully completed


Another possible workaround (but I prefer the former):

[output-option]$ lilypond --include=`pwd`/pieces --output=out pieces/hello.ly
GNU LilyPond 2.19.81
Changing working directory to: `out'
Processing `pieces/hello.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/tmp/lilypond-8YRlv9'...
Converting to `hello.pdf'...
Deleting `/tmp/lilypond-8YRlv9'...
Success: compilation successfully completed
















reply via email to

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