[Python-checkins] python/dist/src/Mac/OSX/Dist/resources postflight,1.4,1.5
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Mon, 16 Jun 2003 08:10:49 -0700
Update of /cvsroot/python/python/dist/src/Mac/OSX/Dist/resources
In directory sc8-pr-cvs1:/tmp/cvs-serv3242/resources
Modified Files:
postflight
Log Message:
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.
Index: postflight
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/OSX/Dist/resources/postflight,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** postflight 9 May 2003 15:09:50 -0000 1.4
--- postflight 16 Jun 2003 15:10:47 -0000 1.5
***************
*** 67,77 ****
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
1c
#!$installed_python
--- 67,77 ----
fi
! 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
***************
*** 80,84 ****
q
xyzzy
! ed -s $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/pydoc << xyzzy
1c
#!$installed_python
--- 80,84 ----
q
xyzzy
! ed -s $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/pydoc << xyzzy
1c
#!$installed_python
***************
*** 87,89 ****
q
xyzzy
! done
--- 87,90 ----
q
xyzzy
! done
! fi