Code

modified the way -py option is handled to account for spaces in the PATH and avoid...
authorjiho-sf <jiho-sf@users.sourceforge.net>
Sat, 12 May 2007 21:10:55 +0000 (21:10 +0000)
committerjiho-sf <jiho-sf@users.sourceforge.net>
Sat, 12 May 2007 21:10:55 +0000 (21:10 +0000)
packaging/macosx/osx-build.sh
packaging/macosx/osx-dmg.sh

index f532287c48ee2331b7ed79f2013a8e52bf58f252..f1fbb93dde071f985bb0e5b6a8c633112b522c5e 100755 (executable)
@@ -66,7 +66,7 @@ Compilation script for Inkscape on Mac OS X.
   \033[1m$0 conf build install\033[0m
     configure, build and install a dowloaded version of Inkscape in the default
     directory, keeping debugging information.  
-  \033[1m$0 -p ~ -s -py ~/pyxml/ u a c b i p\033[0m
+  \033[1m$0 -p ~ -s -py ~/pyxml/ u a c b i p d\033[0m
     update an svn checkout, prepare configure script, configure,
     build and install Inkscape in the user home directory.     
     Then package Inkscape withouth debugging information,
@@ -125,7 +125,7 @@ do
                STRIP="t" ;;
        -py|--with-python)
                PYTHON="t" 
-               PYTHONDIR=$2
+               PYTHONDIR="$2"
                shift 1 ;;
        esac
        shift 1
@@ -255,11 +255,10 @@ if [[ "$DISTRIB" == "t" ]]
 then   
        # Create dmg bundle
        if [[ "$PYTHON" == "t" ]]; then
-               PYTHONOPTS="-py \"$PYTHONDIR\""
+               ./osx-dmg.sh -py "$PYTHONDIR"
        else
-               PYTHONOPTS=""
+               ./osx-dmg.sh
        fi
-       ./osx-dmg.sh $PYTHONOPTS
        status=$?
        if [[ $status -ne 0 ]]; then
                echo -e "\nDisk image creation failed"
@@ -270,26 +269,26 @@ then
        mv Inkscape.dmg Inkscape_$DATE.dmg
        
        # Prepare information file
-       INFOFILE=Inkscape_$DATE-info.txt
-       echo "Version information on $DATE for `whoami`:
-       OS X      `/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d \:`
-       DarwinPorts  `port version | cut -f2 -d \ `
-       GCC          `gcc --version | grep GCC`
-       GTK          `pkg-config --modversion gtk+-2.0`
-       GTKmm        `pkg-config --modversion gtkmm-2.4`
-       Cairo        `pkg-config --modversion cairo`
-       Cairomm      `pkg-config --modversion cairomm-1.0`
-       CairoPDF     `pkg-config --modversion cairo-pdf`
-       Pango        `pkg-config --modversion pango`
-Configure options:
-       $CONFFLAGS" > $INFOFILE
-       if [[ "$STRIP" == "t" ]]; then
-               echo "Debug info
-       no" >> $INFOFILE
-       else
-               echo "Debug info
-       yes" >> $INFOFILE
-       fi
+#      INFOFILE=Inkscape_$DATE-info.txt
+#      echo "Version information on $DATE for `whoami`:
+#      OS X      `/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d \:`
+#      DarwinPorts  `port version | cut -f2 -d \ `
+#      GCC          `gcc --version | grep GCC`
+#      GTK          `pkg-config --modversion gtk+-2.0`
+#      GTKmm        `pkg-config --modversion gtkmm-2.4`
+#      Cairo        `pkg-config --modversion cairo`
+#      Cairomm      `pkg-config --modversion cairomm-1.0`
+#      CairoPDF     `pkg-config --modversion cairo-pdf`
+#      Pango        `pkg-config --modversion pango`
+Configure options:
+#      $CONFFLAGS" > $INFOFILE
+#      if [[ "$STRIP" == "t" ]]; then
+#              echo "Debug info
+#      no" >> $INFOFILE
+#      else
+#              echo "Debug info
+#      yes" >> $INFOFILE
+#      fi
        
        # open a Finder window here
        open .
index a8d2932ad11bbdcc359507ce98531345a694252e..22cdc52ab7f5aeac20b4949b8cbea58693190718 100755 (executable)
@@ -44,15 +44,15 @@ do
                -s)
                        set_ds_store=true ;;
                -py|--with-python)
-                       add_python=true 
-                       python_dir=$2 
+                       add_python=true
+                       python_dir="$2"
                        ds_store_file="inkscape_python.ds_store"
                        shift 1 ;;
        esac
        shift 1
 done
 # some checks
-if [ ! -e $python_dir ]; then
+if [ ! -e "$python_dir" ]; then
        echo "Cannot find your python packages directory"
        exit 1
 fi
@@ -75,7 +75,7 @@ ln -sf /Applications "$TMPDIR"/
        
 if [ ${add_python} = "true" ]; then
        # Copy python libraries
-       cp -rf $python_dir/* "$TMPDIR"/
+       cp -rf "$python_dir"/* "$TMPDIR"/
        # link python environment in order to drag and drop inkscape onto it
        ln -sf /Library/Python/2.3/site-packages "$TMPDIR"/Python\ site-packages
 fi