upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / solfege / trunk / fix_lilypond_eps_file_mismatch.patch
blob6cfa08dd786587ef2f0ba9457104c11d2f018d11
1 Author: Francois Mazen <francois@mzf.fr>
2 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.
5 --- a/help/Makefile
6 +++ b/help/Makefile
7 @@ -153,7 +153,12 @@
8 ifeq "$(LILYPOND_VERSION)" "2.10"
9 $(LILYPOND) -I ../../C/ly --png -b eps -dno-gs-load-fonts -dinclude-eps-fonts -o $(basename $@) $<
10 else
11 - $(LILYPOND) -I ../../C/ly --png -d backend=eps -o $(basename $@) $<
12 + # Generate the file in a unique temporary folder, in order to avoid mismatch of eps filenames.
13 + mkdir $(basename $@)-tempdir
14 + $(LILYPOND) -I ../../../C/ly --png -d backend=eps -o $(basename $@)-tempdir/temp_output $<
15 + cp $(basename $@)-tempdir/temp_output.png $(basename $@).png
16 + rm $(basename $@)-tempdir/*
17 + rmdir $(basename $@)-tempdir
18 endif
20 stupid-step1: