summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-06-05 20:03:34 +0200
committerxengineering <me@xengineering.eu>2024-06-05 20:03:34 +0200
commit98d0231116b51f2945bed8b0c9336fb3e048dea3 (patch)
treec2ca32c8437c57e6464d6f682f7a3d128aefd431
parent869792d4b9030e0153ae882fd2e4cb6ecab7e159 (diff)
downloadiot-contact-98d0231116b51f2945bed8b0c9336fb3e048dea3.tar
iot-contact-98d0231116b51f2945bed8b0c9336fb3e048dea3.tar.zst
iot-contact-98d0231116b51f2945bed8b0c9336fb3e048dea3.zip
tools: build.sh: Export PCB drawing as PDF
-rwxr-xr-xtools/build.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/build.sh b/tools/build.sh
index 89aa193..788e67a 100755
--- a/tools/build.sh
+++ b/tools/build.sh
@@ -13,10 +13,19 @@ build="${src}/build"
# paths relative to the build or src folder
pcb='pcb'
schematic="${pcb}/iot-contact.kicad_sch"
+board="${pcb}/iot-contact.kicad_pcb"
mkdir -pv "${build}/${pcb}"
+
kicad-cli sch export pdf \
--output "${build}/${schematic}.pdf" \
--black-and-white \
"${src}/${schematic}"
+
+kicad-cli pcb export pdf \
+ --output "${build}/${board}.pdf" \
+ --layers F.Cu,Edge.Cuts \
+ --include-border-title \
+ --black-and-white \
+ "${src}/${board}"