mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-29 04:11:52 +02:00
cd80647273
Grmbl. Some junk ended up in this commit as well. Don't dare to disentangle the mess.
28 lines
354 B
Bash
Executable File
28 lines
354 B
Bash
Executable File
#!/bin/sh
|
|
while [ "$1" ]; do
|
|
eval "$1"
|
|
shift
|
|
done
|
|
|
|
: ${MILL:=125mil}
|
|
: ${OVERLAP:=1.6mm}
|
|
: ${X0:=0mm}
|
|
: ${Y0:=0mm}
|
|
: ${Z1:=0mm}
|
|
: ${PIECE_Z:=0mm}
|
|
: ${Z_OFFSET:=0mm}
|
|
: ${CAMEO:=cameo}
|
|
: ${OUT:=out.gp}
|
|
|
|
$CAMEO <<EOF
|
|
gnuplot $MILL $PART-piece.gp
|
|
gnuplot $MILL $PART.gp
|
|
$REVERSE
|
|
align 1 $X0 $Y0
|
|
z 0 $Z1
|
|
z $Z_OFFSET
|
|
z -$PIECE_Z
|
|
area $OVERLAP
|
|
write $OUT
|
|
EOF
|