X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fbackend-svg.ly;h=69116f1b3839884351cfeb8fcf8e52ff91e94bc6;hb=bef92d6520b770de640bde6125368c6f0056aed4;hp=83f40500c575429494e1735a532ae56c0cd4e35b;hpb=d8c103f73dec7a61da04f3be0ffa6a790660fb52;p=lilypond.git diff --git a/input/regression/backend-svg.ly b/input/regression/backend-svg.ly index 83f40500c5..69116f1b38 100644 --- a/input/regression/backend-svg.ly +++ b/input/regression/backend-svg.ly @@ -1,21 +1,27 @@ - +%{ #(ly:set-option 'backend 'svg) #(set! output-count 1) \include "typography-demo.ly" -\version "2.11.16" +\version "2.12.0" #(define outname (ly:parser-output-name parser)) #(ly:set-option 'backend 'eps) %% TODO: what to do if inkscape fails? -#(display "Invoking inkscape...\n") - -%% LD_LIBRARY_PATH is necesssary, otherwise, it doesn't build in GUB. -#(ly:system (format #f "inkscape -T -E ~a-inkscape.eps ~a-1.svg" outname outname) +#(ly:progress "Invoking inkscape...\n") + +%% LD_LIBRARY_PATH is necesssary, otherwise, it doesn't build in GUB. +%% LD_LIBRARY_PATH is part of the start-environment but should be switched off +%% for external inkscape. +#(let* + ((cmd (format #f + "LD_LIBRARY_PATH= inkscape --without-gui --export-text-to-path --export-eps ~a-inkscape.eps ~a-1.svg" outname outname))) + (ly:progress "Running ~a" cmd) + (ly:system cmd) (cons (format #f "FONTCONFIG_FILE=~a/fonts/fonts.conf" (ly:effective-prefix)) (ly:start-environment))) @@ -38,3 +44,4 @@ } } } +%}