Code

Added some new checks for directories to add them to the PATH before calling Inkscape...
authorjiho-sf <jiho-sf@users.sourceforge.net>
Tue, 17 Apr 2007 18:02:50 +0000 (18:02 +0000)
committerjiho-sf <jiho-sf@users.sourceforge.net>
Tue, 17 Apr 2007 18:02:50 +0000 (18:02 +0000)
packaging/macosx/Resources/bin/inkscape

index 291952d45099c327978aff8a9d5c6dc3836ccf15..a97036ebc4598fb5bd69c0cf66dd53dcaef860c1 100755 (executable)
@@ -10,10 +10,19 @@ CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`"
 TOP="`dirname \"$CWD\"`"
 
 export DYLD_LIBRARY_PATH="$TOP/lib"
+# add /usr/local/bin which, though standard, don't seem to be in the PATH
+PATH="/usr/local/bin:$PATH"
+# add python from MacPython http://homepages.cwi.nl/~jack/macpython/macpython-osx.html
+if [ -d /Library/Frameworks/Python.framework/Versions/Current/bin ]
+then
+       export PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:$PATH"
+fi
+# add Fink
 if [ -d /sw/bin ]
 then
        export PATH="/sw/bin/:$PATH"
 fi
+# add MacPorts (former DarwinPorts)
 if [ -d /opt/local/bin ]
 then
        export PATH="/opt/local/bin:$PATH"