]> granicus.if.org Git - python/commitdiff
Pydoc also needs its #! line massaged. Fixes #733199.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 9 May 2003 15:09:50 +0000 (15:09 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 9 May 2003 15:09:50 +0000 (15:09 +0000)
Mac/OSX/Dist/resources/postflight

index e7cb8f2c96533ddc43f4ba269e14b4fcd8fe42f6..0e95f9deda7692e45a4156a2a481d8f94caea72a 100755 (executable)
@@ -67,7 +67,7 @@ if [ "$DEST" = "/" ]; then
 fi
 
 
-# The link in the app bundles needs updated.
+# 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 \
@@ -79,5 +79,11 @@ for app in BuildApplet IDLE PackageManager PythonIDE; do
 w
 q
 xyzzy
-    
+ed -s $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/pydoc << xyzzy
+1c
+#!$installed_python
+.
+w
+q
+xyzzy
 done