Skip to content
Snippets Groups Projects
Commit bf435366 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Rework dia -> pdf pipeline for inkscape 1.0

 - Use dia directly to convert from .dia to .svg (inkscape would use dia via a
 plugin anyway)
 - Add proper runes to detect inkscape >= 1 and use the export options for that.
parent 0547a516
No related branches found
Tags v0.0.16
No related merge requests found
......@@ -6,12 +6,15 @@ BUILD_TARGETS += $(MERKLE_DAG)
all: $(BUILD_TARGETS)
%.svg: %.dia
inkscape -l $@ $<
dia -e $@ $<
%.pdf: %.dia
inkscape -A $@ $<
%.pdf: %.svg
set -e; if [ $$(inkscape --version 2>/dev/null | grep -Eo '[0-9]+' | head -1) -gt 0 ]; then \
inkscape -o $@ $< ; \
else \
inkscape -A $@ $< ; \
fi
clean:
-rm -f $(BUILD_TARGETS)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment