diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-06-16 15:10:47 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-06-16 15:10:47 (GMT) |
commit | e5370655dc769a23979a85c7e2790804171f71a3 (patch) | |
tree | 48c3fd546c1bc7ef7cd3253fe028504aca30e216 /Mac/OSX | |
parent | a93b3cc9c2c60353aacf764bcbead04603055362 (diff) | |
download | cpython-e5370655dc769a23979a85c7e2790804171f71a3.zip cpython-e5370655dc769a23979a85c7e2790804171f71a3.tar.gz cpython-e5370655dc769a23979a85c7e2790804171f71a3.tar.bz2 |
Only fix up pathnames in installed scripts when needed, i.e. when not installing
to /. Pathnames are correct for installing to / since the DESTDIR patch.
Diffstat (limited to 'Mac/OSX')
-rwxr-xr-x | Mac/OSX/Dist/resources/postflight | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Mac/OSX/Dist/resources/postflight b/Mac/OSX/Dist/resources/postflight index 0e95f9d..71ff2c1 100755 --- a/Mac/OSX/Dist/resources/postflight +++ b/Mac/OSX/Dist/resources/postflight @@ -66,24 +66,25 @@ if [ "$DEST" = "/" ]; then done fi - -# The link in the app bundles and in pydoc need updating. -installed_python=$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python -for app in BuildApplet IDLE PackageManager PythonIDE; do - ln -fsh $installed_python \ - $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS - ed -s $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS/$app << xyzzy +if [ "$DEST" != "/" ]; then + # The link in the app bundles and in pydoc need updating. + installed_python=$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python + for app in BuildApplet IDLE PackageManager PythonIDE; do + ln -fsh $installed_python \ + $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS + ed -s $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS/$app << xyzzy 1c #!$installed_python . w q xyzzy -ed -s $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/pydoc << xyzzy + ed -s $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/pydoc << xyzzy 1c #!$installed_python . w q xyzzy -done + done +fi |