chiark / gitweb /
Updated macOS scripts to be commands, makes them easier to run.
authordaid <daid303@gmail.com>
Thu, 5 Jul 2012 11:08:13 +0000 (13:08 +0200)
committerdaid <daid303@gmail.com>
Thu, 5 Jul 2012 11:08:13 +0000 (13:08 +0200)
package.sh
scripts/osx64/cura.command [moved from scripts/osx64/cura.sh with 69% similarity]
scripts/osx64/pronterface.command [moved from scripts/osx64/pronterface.sh with 100% similarity]

index a84b8d7a12a961fad4b1158346a593864a95938a..5845d6fd12fea043b7bbbbc0d647f82728d0e271 100755 (executable)
@@ -154,6 +154,7 @@ if [ $BUILD_TARGET = "win32" ]; then
     cp -a scripts/${BUILD_TARGET}/*.bat $TARGET_DIR/
 else
     cp -a scripts/${BUILD_TARGET}/*.sh $TARGET_DIR/
+    cp -a scripts/${BUILD_TARGET}/*.command $TARGET_DIR/
 fi
 
 #package the result
similarity index 69%
rename from scripts/osx64/cura.sh
rename to scripts/osx64/cura.command
index d48f36508646550bec21207a4eef0cb23c552022..2248b06ca0429ef6a6020949e20f5b0f8ea57eb9 100755 (executable)
@@ -1,20 +1,27 @@
 #!/bin/bash
 
-python -c 'import OpenGL'
+python2.7 -c ''
+if [ $? != 0 ]; then
+       echo "Requires python2.7"
+       echo " Install python2.7"
+       exit 1
+fi
+
+python2.7 -c 'import OpenGL'
 if [ $? != 0 ]; then
        echo "Requires PyOpenGL"
        echo " sudo easy_install PyOpenGL"
        exit 1
 fi
 
-python -c 'import wx'
+python2.7 -c 'import wx'
 if [ $? != 0 ]; then
        echo "Requires wx. Download and install (the Cocoa/64-bit variant) from:"
        echo " http://www.wxpython.org/download.php"
        exit 1
 fi
 
-python -c 'import serial'
+python2.7 -c 'import serial'
 if [ $? != 0 ]; then
        echo "Requires pyserial."
        echo " sudo easy_install pyserial"