Code

quick fix to OS X packaging script to allow the incorporation of Python in the bundle...
authorjiho-sf <jiho-sf@users.sourceforge.net>
Wed, 13 Feb 2008 22:17:52 +0000 (22:17 +0000)
committerjiho-sf <jiho-sf@users.sourceforge.net>
Wed, 13 Feb 2008 22:17:52 +0000 (22:17 +0000)
packaging/macosx/osx-app.sh
packaging/macosx/osx-build.sh

index 8e0970b3956184537da86bd1d69e72a7fd4c6585..ba6b7570d45e318d6590161e6e7e738edcaae5fa 100755 (executable)
@@ -100,7 +100,7 @@ do
                        help
                        exit 0 ;;
                *)
-                       echo "Invalid command line option" 
+                       echo "Invalid command line option: $1
                        exit 2 ;;
        esac
        shift 1
index 487ed2bedb9c72feac3fca3c4e13bcf8bc5a3088..0356d413fa5b65530b32033759f28f0c976ba329 100755 (executable)
@@ -137,13 +137,13 @@ do
        -p|--prefix)
                INSTALLPREFIX=$2
                shift 1 ;;
-       -s|-strip)
+       -s|--strip)
                STRIP="-s" ;;
        -py|--with-python)
                PYTHON_MODULES="$2"
                shift 1 ;;
        *)
-               echo "Invalid command line option" 
+               echo "Invalid command line option: $1
                exit 2 ;;
        esac
        shift 1
@@ -251,11 +251,12 @@ then
        
        # Set python command line option (if PYTHON_MODULES location is not empty, then add the python call to the command line, otherwise, stay empty)
        if [[ "$PYTHON_MODULES" != "" ]]; then
-               PYTHON_MODULES="-py '$PYTHON_MODULES'"
+               PYTHON_MODULES="-py $PYTHON_MODULES"
+               # TODO: fix this: it does not allow for spaces in the PATH under this form and cannot be quoted
        fi
 
        # Create app bundle
-       ./osx-app.sh $STRIP -b $INSTALLPREFIX/bin/inkscape -p $SRCROOT/Info.plist "$PYTHON_MODULES"
+       ./osx-app.sh $STRIP -b $INSTALLPREFIX/bin/inkscape -p $SRCROOT/Info.plist $PYTHON_MODULES
        status=$?
        if [[ $status -ne 0 ]]; then
                echo -e "\nApplication bundle creation failed"