threadlib/design/autogenerate.awk
Adrian Schlatter 55e360d76b
Unified Inch Screw Threads (#29)
Unified Inch Screw Threads
++++++++++++++++++++++++++

Added unified inch screw threads. Namely UNC, UNF, UNEF, 4-UN, 6-UN,
8-UN, 12-UN, 16-UN, 20-UN, 28-UN, and 32-UN.

Also, removed reference to long-gone Excel table.

solves #11 
solves #12 
solves #13
2019-11-11 21:20:33 +01:00

15 lines
341 B
Awk

BEGIN {
FS = ",";
print "/* This script is auto-generated - do not edit"
print " :License: 3-clause BSD. See LICENSE. */"
printf "\nTHREAD_TABLE = ["
}
// {
gsub(/\r/, "");
print "[\"" $1 "\", [" $2 ", " $3 ", " $4 ", [[" $5 ", " $6 "], [" \
$7 ", " $8 "], [" $9 ", " $10 "], [" $11 ", " $12 "]]]],";
}
END { print "];" }