From 217e3086c74eb0b46fab512b5887d9a5a5b7ee9a Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Sat, 8 Aug 2009 08:02:52 +0300 Subject: 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. --- docs-xml/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs-xml/Makefile') diff --git a/docs-xml/Makefile b/docs-xml/Makefile index 717d0679fe..40a6c7b610 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) > $@ -- cgit