diff --git a/hardware/Common_Rail_MC33816/gerbers/kicadBom2jlcpcb.bat b/hardware/Common_Rail_MC33816/gerbers/kicadBom2jlcpcb.bat new file mode 100644 index 0000000000..bad4f286e1 --- /dev/null +++ b/hardware/Common_Rail_MC33816/gerbers/kicadBom2jlcpcb.bat @@ -0,0 +1,22 @@ + +set inputFile=../Common_Rail_MC33816.csv +set outputFile=MC33816_R0.3-bom.csv + + +echo "Translating from %inputFile% to %outputFile%" + + +echo Comment,Designator,Footprint,LCSC Part #> %outputFile% + +grep JLCPCB %inputFile% + +grep JLCPCB %inputFile% > %outputFile%.temp + +sed -f removedoublecomma.sed %outputFile%.temp > %outputFile%.all + + + + +rem | gawk -F "," '{print $4}' + + diff --git a/hardware/Common_Rail_MC33816/gerbers/removedoublecomma.sed b/hardware/Common_Rail_MC33816/gerbers/removedoublecomma.sed new file mode 100644 index 0000000000..a1f6ca1b13 --- /dev/null +++ b/hardware/Common_Rail_MC33816/gerbers/removedoublecomma.sed @@ -0,0 +1 @@ +s/\,\,/\,/g