]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/backend-svg.ly
Doc-es: various updates.
[lilypond.git] / input / regression / backend-svg.ly
index 83f40500c575429494e1735a532ae56c0cd4e35b..ad0c30036cd2749e80381f80e8106cf05b99b6f4 100644 (file)
@@ -1,21 +1,27 @@
-
+\version "2.19.22"
+%{
 #(ly:set-option 'backend 'svg)
 #(set! output-count 1)
 
 
 \include "typography-demo.ly"
 
-\version "2.11.16"
 
-#(define outname (ly:parser-output-name parser))
+#(define outname (ly:parser-output-name))
 
 #(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 @@
     }
   }
 }
+%}