-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-models.sh
More file actions
executable file
·26 lines (20 loc) · 1.07 KB
/
create-models.sh
File metadata and controls
executable file
·26 lines (20 loc) · 1.07 KB
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
# based on similar changes from alexoterof in okke-formsma/dactyl-manuform-tight
# MAC
OPEN_SCAD='/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD'
# WINDOWS
# OPEN_SCAD='openscad.com'
echo 'Generating things/*.scad files using '$(lein -v)
echo '(load-file "src/dactyl_keyboard/dactyl.clj")' | lein repl > /dev/null 2>&1
echo 'Rendering things/*.stl files from things/*.scad using ...'
$OPEN_SCAD -v
$OPEN_SCAD -o things/usb-holder_w_reset.stl things/usb_holder.scad >/dev/null 2>&1 &
$OPEN_SCAD -o things/single-plate.stl things/single-plate.scad >/dev/null 2>&1 &
$OPEN_SCAD -o things/wrist-rest-right-holes.stl things/wrist-rest-right-holes.scad >/dev/null 2>&1 &
$OPEN_SCAD -o things/right-plate.stl things/right-plate.scad >/dev/null 2>&1 &
$OPEN_SCAD -o things/right.stl things/right.scad >/dev/null 2>&1 &
$OPEN_SCAD -o things/left.stl things/left.scad >/dev/null 2>&1 &
echo 'Please wait for STL files to output in things/ directory!'
# echo 'Removing intermediary things/*.scad files...'
# rm -f things/right-bottom-plate.scad
# rm -f things/right.scad
# rm -f things/left.scad