From: Alexander Bokovoy Date: Sat, 8 Aug 2009 05:02:52 +0000 (+0300) Subject: Pass absolute file paths to Inkscape when transforming .svg files X-Git-Tag: talloc-2.0.0~465 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=217e3086c74eb0b46fab512b5887d9a5a5b7ee9a;p=thirdparty%2Fsamba.git Pass absolute file paths to Inkscape when transforming .svg files 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. --- diff --git a/docs-xml/Makefile b/docs-xml/Makefile index 717d0679fe1..40a6c7b6102 100644 --- a/docs-xml/Makefile +++ b/docs-xml/Makefile @@ -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) > $@