1
0
mirror of synced 2026-01-13 15:17:34 +00:00
2020-12-13 14:57:19 +01:00

28 lines
847 B
Bash
Executable File

#!/bin/bash
GERBER_FILES="sbus-to-ztex-B.Cu.gbr sbus-to-ztex-B.Mask.gbr sbus-to-ztex-B.Paste.gbr sbus-to-ztex-B.SilkS.gbr sbus-to-ztex-Edge.Cuts.gbr sbus-to-ztex-F.Cu.gbr sbus-to-ztex-F.Mask.gbr sbus-to-ztex-F.Paste.gbr sbus-to-ztex-F.SilkS.gbr sbus-to-ztex-In1.Cu.gbr sbus-to-ztex-In2.Cu.gbr"
POS_FILES="sbus-to-ztex-bottom.pos sbus-to-ztex-top.pos"
DRL_FILES="sbus-to-ztex-NPTH.drl sbus-to-ztex-PTH.drl sbus-to-ztex-PTH-drl_map.ps sbus-to-ztex-NPTH-drl_map.ps"
FILES="${GERBER_FILES} ${POS_FILES} ${DRL_FILES} top.pdf bottom.pdf sbus-to-ztex.d356 sbus-to-ztex.csv"
echo $FILES
KICAD_PCB=sbus-to-ztex.kicad_pcb
ABORT=no
for F in $FILES; do
if test \! -f $F || test $KICAD_PCB -nt $F; then
echo "Regenerate file $F"
ABORT=yes
fi
done
if test $ABORT == "yes"; then
exit -1;
fi
zip sbus-to-ztex.zip $FILES top.jpg bottom.jpg