mirror of
https://github.com/oxidecomputer/hw-gimletlet-nic.git
synced 2024-11-21 21:34:39 +00:00
35 lines
757 B
Bash
Executable File
35 lines
757 B
Bash
Executable File
#!/bin/sh
|
|
set -e -x
|
|
|
|
# Renames to match expected (Protel) Gerber file extensions, and compresses
|
|
# a board into a zip archive for manufacturing.
|
|
BOARD=nic2
|
|
|
|
# Clean up after a previous run
|
|
rm -f $BOARD/* $BOARD.zip
|
|
rmdir $BOARD
|
|
|
|
mkdir -p $BOARD
|
|
cp -r gerbers/* $BOARD/
|
|
|
|
cd $BOARD
|
|
mv $BOARD-B_Cu.gbr $BOARD.gbl
|
|
mv $BOARD-B_Mask.gbr $BOARD.gbs
|
|
mv $BOARD-B_Paste.gbr $BOARD.gbp
|
|
mv $BOARD-B_Silkscreen.gbr $BOARD.gbo
|
|
mv $BOARD-F_Cu.gbr $BOARD.gtl
|
|
mv $BOARD-F_Mask.gbr $BOARD.gts
|
|
mv $BOARD-F_Paste.gbr $BOARD.gtp
|
|
mv $BOARD-F_Silkscreen.gbr $BOARD.gto
|
|
mv $BOARD-Edge_Cuts.gbr $BOARD.gm1
|
|
mv $BOARD-In1_Cu.gbr $BOARD.gp1
|
|
mv $BOARD-In2_Cu.gbr $BOARD.gp2
|
|
rm $BOARD-job.gbrjob
|
|
|
|
cd ..
|
|
zip -v $BOARD.zip $BOARD/*
|
|
|
|
# Clean up the board directory
|
|
rm $BOARD/*
|
|
rmdir $BOARD
|