|
@@ -1,10 +1,10 @@
|
1
|
1
|
#!/bin/bash
|
2
|
2
|
|
3
|
|
-# SPDX-FileCopyrightText: 2023 - 2024 Thomas Buck <thomas@xythobuz.de>
|
|
3
|
+# SPDX-FileCopyrightText: 2024 Thomas Buck <thomas@xythobuz.de>
|
4
|
4
|
# SPDX-License-Identifier: CERN-OHL-S-2.0+
|
5
|
5
|
#
|
6
|
6
|
# ------------------------------------------------------------------------------
|
7
|
|
-# | Copyright (c) 2023 - 2024 Thomas Buck <thomas@xythobuz.de> |
|
|
7
|
+# | Copyright (c) 2024 Thomas Buck <thomas@xythobuz.de> |
|
8
|
8
|
# | |
|
9
|
9
|
# | This source describes Open Hardware and is licensed under the CERN-OHL-S v2 |
|
10
|
10
|
# | or any later version. |
|
|
@@ -31,6 +31,7 @@ INPCB="drumkit.kicad_pcb"
|
31
|
31
|
OUTDIR="plot"
|
32
|
32
|
LAYER_F="F.Cu,F.Mask,F.Paste,F.Silkscreen,Edge.Cuts,User.Drawings"
|
33
|
33
|
LAYER_B="B.Cu,B.Mask,B.Paste,B.Silkscreen,Edge.Cuts,User.Drawings"
|
|
34
|
+LAYER_MANUAL="B.Cu,Edge.Cuts"
|
34
|
35
|
|
35
|
36
|
cd "$(dirname "$0")"
|
36
|
37
|
rm -rf $OUTDIR
|
|
@@ -75,5 +76,16 @@ do
|
75
|
76
|
-o $OUTDIR/$IN.$TYPE \
|
76
|
77
|
$IN
|
77
|
78
|
echo
|
|
79
|
+
|
|
80
|
+ echo "Exporting DIY board $VAR"
|
|
81
|
+ rm -rf $OUTDIR/${IN}_diy.$TYPE
|
|
82
|
+ kicad-cli pcb export $TYPE \
|
|
83
|
+ -t "KiCad Default" \
|
|
84
|
+ -l $LAYER_MANUAL \
|
|
85
|
+ --black-and-white \
|
|
86
|
+ --negative \
|
|
87
|
+ -o $OUTDIR/${IN}_diy.$TYPE \
|
|
88
|
+ $IN
|
|
89
|
+ echo
|
78
|
90
|
done
|
79
|
91
|
done
|