21 lines
920 B
Diff
21 lines
920 B
Diff
Author: Francois Mazen <francois@mzf.fr>
|
|
Description: Fix the mismatch of intermediate eps filename when generating theory-intervals-seconds.png and theory-intervals-seconds-1.png in parallel. This issue lead to reproducible issue and sometimes wrong generation of png files.
|
|
|
|
|
|
--- a/help/Makefile
|
|
+++ b/help/Makefile
|
|
@@ -153,7 +153,12 @@
|
|
ifeq "$(LILYPOND_VERSION)" "2.10"
|
|
$(LILYPOND) -I ../../C/ly --png -b eps -dno-gs-load-fonts -dinclude-eps-fonts -o $(basename $@) $<
|
|
else
|
|
- $(LILYPOND) -I ../../C/ly --png -d backend=eps -o $(basename $@) $<
|
|
+ # Generate the file in a unique temporary folder, in order to avoid mismatch of eps filenames.
|
|
+ mkdir $(basename $@)-tempdir
|
|
+ $(LILYPOND) -I ../../../C/ly --png -d backend=eps -o $(basename $@)-tempdir/temp_output $<
|
|
+ cp $(basename $@)-tempdir/temp_output.png $(basename $@).png
|
|
+ rm $(basename $@)-tempdir/*
|
|
+ rmdir $(basename $@)-tempdir
|
|
endif
|
|
|
|
stupid-step1:
|