mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-01-16 20:58:26 +01:00
55e360d76b
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
15 lines
341 B
Awk
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 "];" }
|