summaryrefslogtreecommitdiffstats
path: root/Mac/OSX
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-11-07 23:07:05 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-11-07 23:07:05 (GMT)
commitdde800ec4ee704d0c4d6d0b60d74e72e0ea834d8 (patch)
tree329e6e0e43d662232eb8e3ccc1b5dc22f719bdb3 /Mac/OSX
parent430b1563dde73ae1dc8f2379bdd29a0b0e5c82eb (diff)
downloadcpython-dde800ec4ee704d0c4d6d0b60d74e72e0ea834d8.zip
cpython-dde800ec4ee704d0c4d6d0b60d74e72e0ea834d8.tar.gz
cpython-dde800ec4ee704d0c4d6d0b60d74e72e0ea834d8.tar.bz2
Got rid of the python.rsrc resource file. The error message strings and
dialogs are now stored in Mac/Lib, and loaded on demand through macresource. Not only does this simplify a MacPython based on Apple's Python, but it also makes Mac error codes come out symbolically when running command line python (if you have Mac/Lib in your path). The resource files are copied from Mac/Resources. The old ones will disappear after the OS9 build procedure has been adjusted.
Diffstat (limited to 'Mac/OSX')
-rw-r--r--Mac/OSX/Makefile38
1 files changed, 5 insertions, 33 deletions
diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile
index b28d9f2..c8d5840 100644
--- a/Mac/OSX/Makefile
+++ b/Mac/OSX/Makefile
@@ -37,16 +37,11 @@ LDFLAGS=-F$(builddir) -framework System -framework Python -framework Carbon \
-framework Foundation
CC=cc
LD=cc
-REZ=/Developer/Tools/Rez
-DEREZ=/Developer/Tools/DeRez
CPMAC=/Developer/Tools/CpMac
PYTHON=$(builddir)/python.exe
APPTEMPLATE=$(srcdir)/Mac/OSXResources/app
APPSUBDIRS=MacOS Resources Resources/English.lproj
-RESOURCEDIR=$(srcdir)/Mac/Resources
-RESOURCEFILE=python.rsrc
-RFCONVERTER=$(srcdir)/Mac/Lib/applesingle.py
CACHERSRC=$(srcdir)/Mac/scripts/cachersrc.py
installapps: install_PythonLauncher install_Python install_BuildApplet install_IDE install_IDLE
@@ -94,29 +89,6 @@ install_Python: $(PYTHON)
done; \
done
$(INSTALL_PROGRAM) $(STRIPFLAG) $(PYTHON) $(APPINSTALLDIR)/Contents/MacOS/python
-# Create a temporary version of the resources here
-# Note that the resource files can either be real 2-fork resource files
-# or AppleSingle encoded files.
- @if test -s $(RESOURCEDIR)/dialogs.rsrc; then \
- echo $(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/dialogs.rsrc dialogs.rsrc ;\
- $(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/dialogs.rsrc dialogs.rsrc ; \
- echo $(DEREZ) -useDF -skip ckid dialogs.rsrc > dialogs.r ; \
- $(DEREZ) -useDF -skip ckid dialogs.rsrc > dialogs.r ; \
- else \
- echo $(DEREZ) -skip ckid $(RESOURCEDIR)/dialogs.rsrc > dialogs.r ; \
- $(DEREZ) -skip ckid $(RESOURCEDIR)/dialogs.rsrc > dialogs.r ; \
- fi
- @if test -s $(RESOURCEDIR)/errors.rsrc; then \
- echo $(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/errors.rsrc errors.rsrc ;\
- $(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/errors.rsrc errors.rsrc ; \
- echo $(DEREZ) -useDF -skip ckid errors.rsrc > errors.r ; \
- $(DEREZ) -useDF -skip ckid errors.rsrc > errors.r ; \
- else \
- echo $(DEREZ) -skip ckid $(RESOURCEDIR)/errors.rsrc > errors.r ; \
- $(DEREZ) -skip ckid $(RESOURCEDIR)/errors.rsrc > errors.r ; \
- 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
@@ -205,11 +177,11 @@ installmacsubtree:
echo $(INSTALL_DATA) $$i $(MACLIBDEST); \
fi; \
done
-## @for i in $(MACLIBSRC)/*.rsrc; \
-## do \
-## echo $(CPMAC) $$i $$b ; \
-## $(CPMAC) $$i $$b ; \
-## done
+ @for i in $(MACLIBSRC)/*.rsrc; \
+ do \
+ echo $(CPMAC) $$i $(MACLIBDEST) ; \
+ $(CPMAC) $$i $(MACLIBDEST) ; \
+ done
@for d in $(MACLIBSUBDIRS); \
do \
a=$(MACLIBSRC)/$$d; \