설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

generate_fab.sh 714B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. cd "$(dirname "$0")"
  3. INFILE="dispensy.kicad_pcb"
  4. OUTDIR="fabrication"
  5. OUTZIP="fab"
  6. echo "Creating output directory"
  7. rm -rf $OUTDIR
  8. mkdir -p $OUTDIR
  9. echo "Exporting drill files"
  10. #kicad-cli pcb export drill -o $OUTDIR/ --format excellon --generate-map --map-format pdf $INFILE
  11. kicad-cli pcb export drill -o $OUTDIR/ --format gerber --generate-map --map-format gerberx2 $INFILE
  12. echo "Exporting gerber files"
  13. #kicad-cli pcb export gerbers -o $OUTDIR/ $INFILE
  14. kicad-cli pcb export gerbers -o $OUTDIR/ -l F.Cu,B.Cu,F.Mask,B.Mask,F.Paste,B.Paste,F.Silkscreen,B.Silkscreen,Edge.Cuts $INFILE
  15. # TODO BOM for JLCPCB assembly service
  16. echo "Compressing archive"
  17. rm -rf $OUTZIP.zip
  18. zip -r $OUTZIP fabrication