123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #!/bin/bash
-
- # SPDX-FileCopyrightText: 2023 - 2024 Thomas Buck <thomas@xythobuz.de>
- # SPDX-License-Identifier: CERN-OHL-S-2.0+
- #
- # ------------------------------------------------------------------------------
- # | Copyright (c) 2023 - 2024 Thomas Buck <thomas@xythobuz.de> |
- # | |
- # | This source describes Open Hardware and is licensed under the CERN-OHL-S v2 |
- # | or any later version. |
- # | |
- # | You may redistribute and modify this source and make products using it under |
- # | the terms of the CERN-OHL-S v2 (https://ohwr.org/cern_ohl_s_v2.txt) |
- # | or any later version. |
- # | |
- # | This source is distributed WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, |
- # | INCLUDING OF MERCHANTABILITY, SATISFACTORY QUALITY AND FITNESS FOR A |
- # | PARTICULAR PURPOSE. Please see the CERN-OHL-S v2 (or any later version) |
- # | for applicable conditions. |
- # | |
- # | Source location: https://github.com/drinkrobotics/dispensy |
- # | |
- # | As per CERN-OHL-S v2 section 4, should You produce hardware based on this |
- # | source, You must where practicable maintain the Source Location visible |
- # | on the external case of the Gizmo or other products you make using this |
- # | source. |
- # ------------------------------------------------------------------------------
-
- cd "$(dirname "$0")"
-
- OUTDIR="plot"
- LAYER="F.Cu,B.Cu,F.Mask,B.Mask,F.Paste,B.Paste,F.Silkscreen,B.Silkscreen,Edge.Cuts,User.Drawings"
-
- rm -rf $OUTDIR
- mkdir -p $OUTDIR
-
- for VAR in pdf svg
- do
- echo "Exporting schematic $VAR"
- rm -rf dispensy_sch.$VAR
- kicad-cli sch export $VAR \
- -t "KiCad Default" \
- -o $OUTDIR/dispensy_sch.$VAR \
- dispensy.kicad_sch
-
- echo "Exporting board $VAR"
- rm -rf dispensy_pcb.$VAR
- kicad-cli pcb export $VAR \
- -t "KiCad Classic" \
- -l $LAYER \
- -o $OUTDIR/dispensy_pcb.$VAR \
- dispensy.kicad_pcb
- echo
- done
|