diff options
Diffstat (limited to 'shopenscad.sh')
-rwxr-xr-x | shopenscad.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/shopenscad.sh b/shopenscad.sh index 4e3de98..996d405 100755 --- a/shopenscad.sh +++ b/shopenscad.sh | |||
@@ -1,6 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # parse a .scad file and generate an openscad command with all its var=value's | 2 | # shopenscad.sh: parse a .scad file and generate an openscad command with all |
3 | # parameterized into -D options, which can be overriden with shell variables. | 3 | # its var=value's parameterized into -D options, which can be overriden with |
4 | # shell variables. | ||
4 | # | 5 | # |
5 | # Usage examples: | 6 | # Usage examples: |
6 | # | 7 | # |
@@ -162,6 +163,10 @@ fi | |||
162 | 163 | ||
163 | #openscad_str="$openscad "$scad_file" "$output_params" -o $(strip_trailing "-" "${values_only}").stl" | 164 | #openscad_str="$openscad "$scad_file" "$output_params" -o $(strip_trailing "-" "${values_only}").stl" |
164 | openscad_str="$openscad '$scad_file' "$output_params" -o '$output_filename'" | 165 | openscad_str="$openscad '$scad_file' "$output_params" -o '$output_filename'" |
166 | #openscad_str="$openscad '$scad_file' "$output_params" -o '${all}.stl'" | ||
167 | |||
168 | # ${open_filename//'/'\\''} | ||
169 | |||
165 | 170 | ||
166 | echo "${openscad_str}" | 171 | echo "${openscad_str}" |
167 | $print_vars || ! $run && ! $interactive && exit | 172 | $print_vars || ! $run && ! $interactive && exit |
@@ -175,5 +180,5 @@ if $interactive; then | |||
175 | *) run=false ;; | 180 | *) run=false ;; |
176 | esac | 181 | esac |
177 | fi | 182 | fi |
178 | 183 | #sed -nel <<< "$openscad_str" | |
179 | $run && eval "$(echo "$openscad_str")" | 184 | $run && eval "$openscad_str" |