diff options
-rwxr-xr-x | tools/build.sh | 22 |
1 files changed, 22 insertions, 0 deletions
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}" |