[Python-checkins] python/dist/src/Mac/OSX/Dist/resources postflight,1.2,1.3

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Tue, 29 Apr 2003 14:48:49 -0700


Update of /cvsroot/python/python/dist/src/Mac/OSX/Dist/resources
In directory sc8-pr-cvs1:/tmp/cvs-serv23723a

Modified Files:
	postflight 
Log Message:
The new bundlebuilder-generated applets contain an absolute reference
to the Python used to create them (in the #! line). Therefore, when your
Python installation is moved the applets become invalid. As the 
binary distribution is installed in a different place than where it was
created we need to fix up the #! lines.


Index: postflight
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/OSX/Dist/resources/postflight,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** postflight	22 Mar 2003 00:02:23 -0000	1.2
--- postflight	29 Apr 2003 21:48:46 -0000	1.3
***************
*** 69,74 ****
  
  # The link in the app bundles needs updated.
  for app in BuildApplet IDLE PackageManager PythonIDE; do
!     ln -fsh $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python \
            $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS
  done
--- 69,83 ----
  
  # The link in the app bundles needs updated.
+ 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
+     
  done