Skip to content

Commit

Permalink
config: add support for inkscape 1.x
Browse files Browse the repository at this point in the history
There are breaking command line option changes between 0.9.x and 1.x.
  • Loading branch information
dlech committed Apr 3, 2020
1 parent 9e353b4 commit 402991f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doc/api/diagram_source/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@ clean:
rm -f $(DIAGRAMS)

$(OUT_DIR)/%$(POSTFIX).png: $(SRC_DIR)/%.svg
inkscape --file=$(DIR)/$< --export-area-drawing --export-png=$(DIR)/$@
if inkscape --version | grep -q "Inkscape 0"; then \
inkscape --file=$(DIR)/$< --export-area-drawing --export-png=$(DIR)/$@; \
else \
inkscape \
--export-area-drawing \
--export-background=white \
--export-background-opacity=1.0 \
--export-file=$(DIR)/$@ \
$(DIR)/$<; \
fi

0 comments on commit 402991f

Please sign in to comment.