blob: 003cb3d85e82d5203a895828594795383693796a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
usage() {
cat <<EOF
Usage:
$0
$0 [depth] [tolerance1 tolerance2 .. toleranceN]
By default five test fit pieces are generated with a length of 120mm at the
tolerances 0.1mm, 0.2mm, 0.3mm, 0.4mm, and 0.5mm.
Over ride the defaults by supplying paramaters; the first parameter the depth and the rest are
taken as tolerances.
EOF
}
[ "-h" == "$1" ] || [ "--help" == "$1" ]&& usage && exit;
depth=${1:-120}; shift
tolerances=${*:-0.1 0.2 0.3 0.4 0.5};
male='"male_tabs"'
female='"female_tabs"'
shopen="./shopenscad.sh cubbies.scad"
part="$male" $shopen
for t in ${tolerances[@]}; do
tab_tolerance=$t part="$female" $shopen
done;
|