From e6fc87d14aa2fcf30812b6b7bccd35dd3026631e Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 5 Jun 2024 19:45:11 +0200 Subject: tools: Add build.sh to export PDF schematics --- tools/build.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tools/build.sh diff --git a/tools/build.sh b/tools/build.sh new file mode 100755 index 0000000..89aa193 --- /dev/null +++ b/tools/build.sh @@ -0,0 +1,22 @@ +#!/bin/sh + + +set -euf + + +# absolute paths +script="$(realpath $0)" +tools="$(dirname "${script}")" +src="$(dirname "${tools}")" +build="${src}/build" + +# paths relative to the build or src folder +pcb='pcb' +schematic="${pcb}/iot-contact.kicad_sch" + + +mkdir -pv "${build}/${pcb}" +kicad-cli sch export pdf \ + --output "${build}/${schematic}.pdf" \ + --black-and-white \ + "${src}/${schematic}" -- cgit v1.2.3-70-g09d2