Commit e841f870 authored by Jack Jansen's avatar Jack Jansen

Try to cater for a source tree checked out with MacCVS in stead of

unix cvs. In this case the resource files are actual resource files
in stead of AppleSingle encoded files.
parent 0326a08d
...@@ -38,6 +38,7 @@ CC=cc ...@@ -38,6 +38,7 @@ CC=cc
LD=cc LD=cc
REZ=/Developer/Tools/Rez REZ=/Developer/Tools/Rez
DEREZ=/Developer/Tools/DeRez DEREZ=/Developer/Tools/DeRez
CPMAC=/Developer/Tools/CpMac
PYTHON=$(builddir)/python.exe PYTHON=$(builddir)/python.exe
APPTEMPLATE=$(srcdir)/Mac/OSXResources/app APPTEMPLATE=$(srcdir)/Mac/OSXResources/app
...@@ -92,11 +93,27 @@ install_Python: $(PYTHON) ...@@ -92,11 +93,27 @@ install_Python: $(PYTHON)
done; \ done; \
done done
$(INSTALL_PROGRAM) $(STRIPFLAG) $(PYTHON) $(APPINSTALLDIR)/Contents/MacOS/python $(INSTALL_PROGRAM) $(STRIPFLAG) $(PYTHON) $(APPINSTALLDIR)/Contents/MacOS/python
# Create a temporary version of the resources here # Create a temporary version of the resources here
$(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/dialogs.rsrc dialogs.rsrc # Note that the resource files can either be real 2-fork resource files
$(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/errors.rsrc errors.rsrc # or AppleSingle encoded files.
$(DEREZ) -useDF -skip ckid dialogs.rsrc > dialogs.r @if test -s $(RESOURCEDIR)/dialogs.rsrc; then \
$(DEREZ) -useDF -skip ckid errors.rsrc > errors.r 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 $(REZ) -useDF -o $(RESOURCEFILE) dialogs.r errors.r
$(INSTALL_DATA) $(RESOURCEFILE) $(APPINSTALLDIR)/Contents/Resources/$(RESOURCEFILE) $(INSTALL_DATA) $(RESOURCEFILE) $(APPINSTALLDIR)/Contents/Resources/$(RESOURCEFILE)
...@@ -154,7 +171,7 @@ installmacsubtree: $(INSTALLED_PYTHON) ...@@ -154,7 +171,7 @@ installmacsubtree: $(INSTALLED_PYTHON)
else true; \ else true; \
fi; \ fi; \
done done
@for i in $(MACLIBSRC)/*.py $(MACLIBSRC)/*.rsrc; \ @for i in $(MACLIBSRC)/*.py; \
do \ do \
if test -x $$i; then \ if test -x $$i; then \
$(INSTALL_SCRIPT) $$i $(MACLIBDEST); \ $(INSTALL_SCRIPT) $$i $(MACLIBDEST); \
...@@ -164,6 +181,11 @@ installmacsubtree: $(INSTALLED_PYTHON) ...@@ -164,6 +181,11 @@ installmacsubtree: $(INSTALLED_PYTHON)
echo $(INSTALL_DATA) $$i $(MACLIBDEST); \ echo $(INSTALL_DATA) $$i $(MACLIBDEST); \
fi; \ fi; \
done done
## @for i in $(MACLIBSRC)/*.rsrc; \
## do \
## echo $(CPMAC) $$i $$b ; \
## $(CPMAC) $$i $$b ; \
## done
@for d in $(MACLIBSUBDIRS); \ @for d in $(MACLIBSUBDIRS); \
do \ do \
a=$(MACLIBSRC)/$$d; \ a=$(MACLIBSRC)/$$d; \
...@@ -176,6 +198,10 @@ installmacsubtree: $(INSTALLED_PYTHON) ...@@ -176,6 +198,10 @@ installmacsubtree: $(INSTALLED_PYTHON)
*.py[co]) ;; \ *.py[co]) ;; \
*.orig) ;; \ *.orig) ;; \
*~) ;; \ *~) ;; \
*.rsrc) \
echo $(CPMAC) $$i $$b ; \
$(CPMAC) $$i $$b ; \
;; \
*) \ *) \
if test -d $$i; then continue; fi; \ if test -d $$i; then continue; fi; \
if test -x $$i; then \ if test -x $$i; then \
...@@ -211,6 +237,10 @@ installmacsubtree: $(INSTALLED_PYTHON) ...@@ -211,6 +237,10 @@ installmacsubtree: $(INSTALLED_PYTHON)
*.py[co]) ;; \ *.py[co]) ;; \
*.orig) ;; \ *.orig) ;; \
*~) ;; \ *~) ;; \
*.rsrc) \
echo $(CPMAC) $$i $$b ; \
$(CPMAC) $$i $$b ; \
;; \
*) \ *) \
if test -d $$i; then continue; fi; \ if test -d $$i; then continue; fi; \
if test -x $$i; then \ if test -x $$i; then \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment