mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-08-02 01:20:42 +02:00
Fixed autogenerate.awk so that it outputs unix-stile line endings even
with DOS-style input line endings.
This commit is contained in:
@@ -27,7 +27,6 @@ Creating a thread is as simple as
|
|||||||
to create a British Standard Pipe parallel external thread.
|
to create a British Standard Pipe parallel external thread.
|
||||||
|
|
||||||
|
|
||||||
==================================
|
|
||||||
Why you may want to use threadlib
|
Why you may want to use threadlib
|
||||||
==================================
|
==================================
|
||||||
|
|
||||||
@@ -36,6 +35,7 @@ Why you may want to use threadlib
|
|||||||
- configurable higbee arc
|
- configurable higbee arc
|
||||||
- creates working threads (clearances are left for production tolerances)
|
- creates working threads (clearances are left for production tolerances)
|
||||||
- flexible:
|
- flexible:
|
||||||
|
|
||||||
- choose the $fn you need to fit the rest of your design
|
- choose the $fn you need to fit the rest of your design
|
||||||
- let threadlib tell you the thread specs so you can do with them what *you* want
|
- let threadlib tell you the thread specs so you can do with them what *you* want
|
||||||
- extensible: Add your own threads
|
- extensible: Add your own threads
|
||||||
|
2086
THREAD_TABLE.scad
2086
THREAD_TABLE.scad
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,14 @@
|
|||||||
BEGIN { FS = "," ; RS = "\n"
|
BEGIN {
|
||||||
print "/* This script is auto-generated - do not edit"
|
FS = ",";
|
||||||
print " :License: 3-clause BSD. See LICENSE. */"
|
print "/* This script is auto-generated - do not edit"
|
||||||
printf "\nTHREAD_TABLE = [" }
|
print " :License: 3-clause BSD. See LICENSE. */"
|
||||||
/^[GPM]/ { print "[\"" $1 "\", [" $2 ", " $3 ", " $4 ", [[" $5 ", " $6 "], [" $7 ", " $8 "], [" $9 ", " $10 "], [" $11 ", " $12 "]]]],"}
|
printf "\nTHREAD_TABLE = ["
|
||||||
|
}
|
||||||
|
|
||||||
|
/^[GPM]/ {
|
||||||
|
gsub(/\r/, "");
|
||||||
|
print "[\"" $1 "\", [" $2 ", " $3 ", " $4 ", [[" $5 ", " $6 "], [" \
|
||||||
|
$7 ", " $8 "], [" $9 ", " $10 "], [" $11 ", " $12 "]]]],";
|
||||||
|
}
|
||||||
|
|
||||||
END { print "];" }
|
END { print "];" }
|
||||||
|
Reference in New Issue
Block a user