diff --git a/hardware/Common_Rail_MC33816/gerbers/kicadPos2jlcpcb.bat b/hardware/Common_Rail_MC33816/gerbers/kicadPos2jlcpcb.bat new file mode 100644 index 0000000000..13dad8696f --- /dev/null +++ b/hardware/Common_Rail_MC33816/gerbers/kicadPos2jlcpcb.bat @@ -0,0 +1,18 @@ +rem +rem This script takes care only of the mechanical part of the transformation - there is still manual rotation at least for some diodes! +rem + +set inputFile=Common_Rail_MC33816-bottom.pos +set outputFile=Common_Rail_MC33816-cpl.csv + +echo "Translating from %inputFile% to %outputFile%" + + +grep -v Package %inputFile% | grep -v # | gawk '{ sub(/\..*/,"", $6); print $1 "," $4 "mm," $5 "mm,Bottom," $6}' > %outputFile%.temp +sed -f ../../tools/unquote.sed %outputFile%.temp > %outputFile%.all + +echo "Designator,Mid X,Mid Y,Layer,Rotation" > %outputFile% + +grep -v "L\|D" %outputFile%.all >> %outputFile% + + diff --git a/hardware/tools/unquote.sed b/hardware/tools/unquote.sed new file mode 100644 index 0000000000..52e4bb63b1 --- /dev/null +++ b/hardware/tools/unquote.sed @@ -0,0 +1 @@ +s/"//g \ No newline at end of file