NuBusFPGA/nubus-to-ztex/pkg.sh
2022-04-17 11:25:48 +02:00

30 lines
873 B
Bash
Executable File

#!/bin/bash
GERBER_FILES="nubus-to-ztex-B.Cu.gbr nubus-to-ztex-B.Mask.gbr nubus-to-ztex-B.Paste.gbr nubus-to-ztex-B.SilkS.gbr nubus-to-ztex-Edge.Cuts.gbr nubus-to-ztex-F.Cu.gbr nubus-to-ztex-F.Mask.gbr nubus-to-ztex-F.Paste.gbr nubus-to-ztex-F.SilkS.gbr nubus-to-ztex-In1.Cu.gbr nubus-to-ztex-In2.Cu.gbr"
POS_FILES="nubus-to-ztex-top.pos"
# nubus-to-ztex-bottom.pos
DRL_FILES="nubus-to-ztex-NPTH.drl nubus-to-ztex-PTH.drl nubus-to-ztex-PTH-drl_map.ps nubus-to-ztex-NPTH-drl_map.ps"
FILES="${GERBER_FILES} ${POS_FILES} ${DRL_FILES} top.pdf nubus-to-ztex.d356 nubus-to-ztex.csv"
# bottom.pdf
echo $FILES
KICAD_PCB=nubus-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 nubus-to-ztex.zip $FILES top.jpg bottom.jpg