summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-01-15 23:20:40 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-01-15 23:20:40 (GMT)
commitfdc8d758adde67303c9be5a6f36bf4a55a831471 (patch)
tree8f2aeae5b258a8784fddf0cdbbeda67aad61bb6f /Mac
parentad134f04635b42b4470bf65c6fa815bbcb4474be (diff)
downloadcpython-fdc8d758adde67303c9be5a6f36bf4a55a831471.zip
cpython-fdc8d758adde67303c9be5a6f36bf4a55a831471.tar.gz
cpython-fdc8d758adde67303c9be5a6f36bf4a55a831471.tar.bz2
Include errors.rsrc in the Python.app resource file, so the error strings
are available in MacOS API exceptions.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/OSX/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile
index 89c9343..524969b 100644
--- a/Mac/OSX/Makefile
+++ b/Mac/OSX/Makefile
@@ -28,7 +28,7 @@ pythonforbundle: $(OBJECTS)
PYTHON=$(PYTHONBUILDDIR)/python.exe
APPTEMPLATE=$(PYTHONBUILDDIR)/Mac/OSXResources/app
APPSUBDIRS=MacOS Resources Resources/English.lproj
-RESOURCEFILE_ASINGLE=$(PYTHONBUILDDIR)/Mac/Resources/dialogs.rsrc
+RESOURCEDIR=$(PYTHONBUILDDIR)/Mac/Resources
RESOURCEFILE=python.rsrc
RFCONVERTER=$(PYTHONBUILDDIR)/Mac/Lib/applesingle.py
install: pythonforbundle
@@ -71,7 +71,11 @@ install: pythonforbundle
done
$(INSTALL_PROGRAM) pythonforbundle $(APPINSTALLDIR)/Contents/MacOS/python
# Create a temporary version of the resources here
- $(PYTHON) $(RFCONVERTER) -r $(RESOURCEFILE_ASINGLE) $(RESOURCEFILE)
+ $(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/dialogs.rsrc dialogs.rsrc
+ $(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/errors.rsrc errors.rsrc
+ DeRez -useDF -skip ckid dialogs.rsrc > dialogs.r
+ DeRez -useDF -skip ckid errors.rsrc > errors.r
+ Rez -useDF -o $(RESOURCEFILE) dialogs.r errors.r
$(INSTALL_DATA) $(RESOURCEFILE) $(APPINSTALLDIR)/Contents/Resources/$(RESOURCEFILE)
LIBDEST=$(INSTALLDIR)/Mac/Lib