Pass absolute file paths to Inkscape when transforming .svg files
authorAlexander Bokovoy <ab@samba.org>
Sat, 8 Aug 2009 05:02:52 +0000 (08:02 +0300)
committerAlexander Bokovoy <ab@samba.org>
Sat, 8 Aug 2009 05:02:52 +0000 (08:02 +0300)
Some recent versions of Inkscape (0.47 or around) have bug when export file name
is treated as relative against the directory of original .svg if it wasn't specified
as an absolute path. Fix it by always using absolute paths during conversion.

docs-xml/Makefile

index 717d0679fe1c46284081c57ad2d3d10e59b6c388..40a6c7b6102a1effba506eb357508b35c989c903 100644 (file)
@@ -153,10 +153,10 @@ $(PSDIR)/%.ps: %/index.xml $(PSDIR) xslt/latex.xsl %-images-eps
        $(DBLATEX) $(DBLATEX_OPTIONS) -I $*/images -t ps -o $@ $<
 
 %.eps: %.svg
-       $(INKSCAPE) -z -f $< --export-eps=$@
+       $(INKSCAPE) -z -f $(abspath $<) --export-eps=$(abspath $@)
 
 %.png: %.svg
-       $(INKSCAPE) -z -f $< --export-png=$@
+       $(INKSCAPE) -z -f $(abspath $<) --export-png=$(abspath $@)
 
 %.eps: %.png
        $(PNGTOPNM) $< | $(PNMTOPS) > $@