No Description
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_plot.sh 619B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. cd "$(dirname "$0")"
  3. OUTDIR="plot"
  4. LAYER="F.Cu,B.Cu,F.Mask,B.Mask,F.Paste,B.Paste,F.Silkscreen,B.Silkscreen,Edge.Cuts,User.Drawings"
  5. rm -rf $OUTDIR
  6. mkdir -p $OUTDIR
  7. for VAR in pdf svg
  8. do
  9. echo "Exporting schematic $VAR"
  10. rm -rf dispensy_sch.$VAR
  11. kicad-cli sch export $VAR \
  12. -t "KiCad Default" \
  13. -o $OUTDIR/dispensy_sch.$VAR \
  14. dispensy.kicad_sch
  15. echo "Exporting board $VAR"
  16. rm -rf dispensy_pcb.$VAR
  17. kicad-cli pcb export $VAR \
  18. -t "KiCad Classic" \
  19. -l $LAYER \
  20. -o $OUTDIR/dispensy_pcb.$VAR \
  21. dispensy.kicad_pcb
  22. echo
  23. done