From 72c2bdaa51a1bae6efca9c4ca1ee58c66602b410 Mon Sep 17 00:00:00 2001 From: Wolfgang Spraul Date: Thu, 13 Jan 2011 22:03:09 +0000 Subject: [PATCH] added cad/Makefile to automate svg2pdf and dxf2png --- cad/.gitignore | 1 + cad/Makefile | 21 ++++++++++++++++ cad/dia_set_line_width.xsl | 41 ++++++++++++++++++++++++++++++++ cad/milkymist-assemble-howto.svg | 2 +- jtag-serial/.gitignore | 1 + 5 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 cad/.gitignore create mode 100644 cad/Makefile create mode 100644 cad/dia_set_line_width.xsl diff --git a/cad/.gitignore b/cad/.gitignore new file mode 100644 index 0000000..0e52dc6 --- /dev/null +++ b/cad/.gitignore @@ -0,0 +1 @@ +milkymist-assemble-howto.pdf diff --git a/cad/Makefile b/cad/Makefile new file mode 100644 index 0000000..68686a7 --- /dev/null +++ b/cad/Makefile @@ -0,0 +1,21 @@ +all: milkymist-assemble-howto.pdf protocase_v7_laser.png + +# +# Install the Yanone Kaffeesatz font from http://www.yanone.de/ +# +milkymist-assemble-howto.pdf: milkymist-assemble-howto.svg + inkscape -A $@ $< + +TMP1 := $(shell mktemp) +TMP2 := $(shell mktemp) + +# process with xsltproc to make the lines thicker and more visible in the PNG +protocase_v7_laser.png: protocase_v7_laser.dxf + dia -e $(TMP1) -t dia $< + zcat $(TMP1) | xsltproc --stringparam line_width 0.5 dia_set_line_width.xsl - | gzip > $(TMP2) + dia -e $@ -t png -s x500 $(TMP2) + rm -f $(TMP1) $(TMP2) + +clean: + rm -f milkymist-assemble-howto.pdf + rm -f protocase_v7_laser.png diff --git a/cad/dia_set_line_width.xsl b/cad/dia_set_line_width.xsl new file mode 100644 index 0000000..779b9c5 --- /dev/null +++ b/cad/dia_set_line_width.xsl @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cad/milkymist-assemble-howto.svg b/cad/milkymist-assemble-howto.svg index 98d823b..80fcbb6 100644 --- a/cad/milkymist-assemble-howto.svg +++ b/cad/milkymist-assemble-howto.svg @@ -5253,7 +5253,7 @@ id="image10882" height="243.06699" width="303.12479" - xlink:href="file:///home/labor/Desktop/Kunden/Milkymist-Howto/Mm1_rc1_parts_on_pcb_farb.png" + xlink:href="Mm1_rc1_parts_on_pcb_farb.png" transform="matrix(0.54058897,0.84128685,-0.95495475,0.29675145,0,0)" />