mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
config: add support for inkscape 1.x
There are breaking command line option changes between 0.9.x and 1.x.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user