Prevent duplicates

Prevent duplicate lines in THREAD_TABLE.scad when long and short descriptors
are identical => if condition in metric_thread.awk
This commit is contained in:
Adrian Schlatter 2022-01-05 18:33:15 +01:00
parent d8c8384988
commit 75814d2013
2 changed files with 8 additions and 929 deletions

File diff suppressed because it is too large Load Diff

View File

@ -73,14 +73,17 @@ BEGIN {
printf Designator "-ext," # designator such as "M4-ext"
printExternalThreadSpecs();
printf DesignatorLong "-ext," # designator such as "M4x0.7-ext"
printExternalThreadSpecs();
if (DesignatorLong != Designator) {
printf DesignatorLong "-ext," # designator such as "M4x0.7-ext"
printExternalThreadSpecs();
}
# Internal thread:
printf Designator "-int," # designator such as "M4-int"
printInternalThreadSpecs();
printf DesignatorLong "-int," # designator such as "M4x0.7-int"
printInternalThreadSpecs();
if (DesignatorLong != Designator) {
printf DesignatorLong "-int," # designator such as "M4x0.7-int"
printInternalThreadSpecs();
}
}