rusefi-1/hardware/Common_Rail_MC33816/gerbers/kicadBom2jlcpcb.bat

19 lines
494 B
Batchfile
Raw Normal View History

2019-12-31 17:39:11 -08:00
@echo off
2019-12-30 13:27:46 -08:00
set inputFile=../Common_Rail_MC33816.csv
set outputFile=MC33816_R0.3-bom.csv
2020-03-17 07:21:33 -07:00
if not exist %inputFile% echo Not found %inputFile%
if not exist %inputFile% exit -1
2019-12-30 13:27:46 -08:00
echo "Translating from %inputFile% to %outputFile%"
echo Comment,Designator,Footprint,LCSC Part #> %outputFile%
2020-03-17 07:21:33 -07:00
2019-12-30 13:27:46 -08:00
grep JLCPCB %inputFile% > %outputFile%.temp
2019-12-31 17:39:11 -08:00
sed -f removedoublecomma.sed %outputFile%.temp | gawk -F "," '{print $3 "," $1 "," $4 "," $10}' >> %outputFile%
2020-03-17 07:21:33 -07:00
rm -f %outputFile%.temp