diff options
| author | Marius Kintel <marius@kintel.net> | 2013-01-30 02:03:11 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2013-01-30 02:03:11 (GMT) | 
| commit | 3a9148a1aa68c7421c11840c684d362b68008cf2 (patch) | |
| tree | 9af6b89bc19cdaa71eb974c185c57882f48aac28 /tests/guicgalpngtest | |
| parent | 2ce2eef74a019199503fecc380a8aec03daeae4b (diff) | |
Make it work with the Mac app bundle binary
Diffstat (limited to 'tests/guicgalpngtest')
| -rwxr-xr-x | tests/guicgalpngtest | 12 | 
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/guicgalpngtest b/tests/guicgalpngtest index 85a5c3c..0ba7fc2 100755 --- a/tests/guicgalpngtest +++ b/tests/guicgalpngtest @@ -3,5 +3,15 @@  # $2 = png filename  # $1 = scad filename -./openscad $1 -o $2 --render +# Handle Mac binaries specially - somewhat hackish.. +EXE=./OpenSCAD.app/Contents/MacOS/OpenSCAD +if [ ! -e $EXE ]; then +  EXE=./openscad +  if [ ! -e $EXE ]; then  +    echo "OpenSCAD binary not found" +    exit 1 +  fi +fi + +$EXE $1 -o $2 --render  | 
