[chirp_devel] [PATCH] Fix Mac .app so paths with spaces work. Fixes Bug #145
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1335195753 21600 # Node ID ec894bb067ad8edd8527141f108b038a903cd1b3 # Parent ab784c6ec8e88c9e2039efc3cd232a9d5153eae5 Fix Mac .app so paths with spaces work. Fixes Bug #145
diff -r ab784c6ec8e8 -r ec894bb067ad build/chirp.app/Contents/MacOS/chirp --- a/build/chirp.app/Contents/MacOS/chirp Thu Apr 19 17:18:49 2012 -0700 +++ b/build/chirp.app/Contents/MacOS/chirp Mon Apr 23 09:42:33 2012 -0600 @@ -1,15 +1,15 @@ #!/bin/bash
-LOCATION=$(dirname ${BASH_SOURCE}) +LOCATION=$(dirname "${BASH_SOURCE}")
PYTHON=/opt/kk7ds//Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
if [ -x $PYTHON ]; then - ln -s $PYTHON ${LOCATION}/../CHIRP + ln -s $PYTHON "${LOCATION}/../CHIRP" PYTHON=${LOCATION}/../CHIRP export PYTHONPATH="/opt/kk7ds//Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/" else PYTHON=/opt/kk7ds/bin/python2.7 fi
-exec $PYTHON ${LOCATION}/../Resources/chirp/chirpw +exec "$PYTHON" "${LOCATION}/../Resources/chirp/chirpw"
participants (2)
-
Dan Smith
-
Tom Hayward