summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-28 21:27:02 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-28 21:27:02 (GMT)
commit4684a09fc5cb67d223e4dff7467813412fceeac1 (patch)
tree51c39a41103c5d1616e552d7e01f49f328972e6f /Mac
parentc58eafbe3ea21dabcbb1588eb9dbfb2faea15319 (diff)
downloadcpython-4684a09fc5cb67d223e4dff7467813412fceeac1.zip
cpython-4684a09fc5cb67d223e4dff7467813412fceeac1.tar.gz
cpython-4684a09fc5cb67d223e4dff7467813412fceeac1.tar.bz2
- Install a symlink to the documentation (which lives in the framework)
in Python.app, and refer to it in Info.plist. This makes Apple Help Viewer recognize the Python documentation. - Changed the externally visible name of Python.app to "Python" (was PythonW).
Diffstat (limited to 'Mac')
-rw-r--r--Mac/OSX/Makefile4
-rw-r--r--Mac/OSXResources/app/Info.plist11
-rw-r--r--Mac/OSXResources/app/Resources/English.lproj/InfoPlist.strings2
3 files changed, 14 insertions, 3 deletions
diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile
index ec51d02..699407c 100644
--- a/Mac/OSX/Makefile
+++ b/Mac/OSX/Makefile
@@ -25,6 +25,7 @@ INSTALL_SYMLINK=/usr/bin/install -l as
INSTALL_PROGRAM=${INSTALL}
INSTALL_SCRIPT= ${INSTALL_PROGRAM}
INSTALL_DATA= ${INSTALL} -m 644
+LN=ln
STRIPFLAG=-s
OPT=-g -O3 -Wall -Wstrict-prototypes -Wno-long-double -no-cpp-precomp \
-fno-common -dynamic
@@ -116,6 +117,9 @@ install_Python: $(PYTHON)
fi
$(REZ) -useDF -o $(RESOURCEFILE) dialogs.r errors.r
$(INSTALL_DATA) $(RESOURCEFILE) $(APPINSTALLDIR)/Contents/Resources/$(RESOURCEFILE)
+# Finally create the documentation symlink
+ $(LN) -fsn ../../../../English.lproj/Documentation $(APPINSTALLDIR)/Contents/Resources/English.lproj/Documentation
+
install_IDE: $(INSTALLED_PYTHONW)
@if $(INSTALLED_PYTHONW) -c "import waste"; then ; else \
diff --git a/Mac/OSXResources/app/Info.plist b/Mac/OSXResources/app/Info.plist
index 7fd5117..6022db7 100644
--- a/Mac/OSXResources/app/Info.plist
+++ b/Mac/OSXResources/app/Info.plist
@@ -29,14 +29,21 @@
<key>CFBundleShortVersionString</key>
<string>2.3</string>
+ <key>CFBundleHelpBookFolder</key>
+ <string>Documentation</string>
+ <key>CFBundleHelpBookName</key>
+ <string>Python Help</string>
+ <key>CFBundleHelpTOCFile</key>
+ <string>index.html</string>
+
<key>CFBundleIconFile</key>
<string>PythonInterpreter.icns</string>
<key>CFBundleIdentifier</key>
- <string>org.python.pythonw</string>
+ <string>org.python.python</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
- <string>PythonW</string>
+ <string>Python</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
diff --git a/Mac/OSXResources/app/Resources/English.lproj/InfoPlist.strings b/Mac/OSXResources/app/Resources/English.lproj/InfoPlist.strings
index 20235b4..5f8924e 100644
--- a/Mac/OSXResources/app/Resources/English.lproj/InfoPlist.strings
+++ b/Mac/OSXResources/app/Resources/English.lproj/InfoPlist.strings
@@ -1,6 +1,6 @@
/* Localized versions of Info.plist keys */
-CFBundleName = "PythonW";
+CFBundleName = "Python";
CFBundleShortVersionString = "Python Interpreter version 2.3";
CFBundleGetInfoString = "Python Interpreter version 2.3, (c) 2002 Python Software Foundation.";
CFBundleLongVersionString = "2.3, (c) 2002 Python Software Foundation.";