mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add a simple Apple Help book to the framework.
This commit is contained in:
parent
8a0b5665c6
commit
82f1d2ce17
1 changed files with 14 additions and 5 deletions
|
@ -43,7 +43,12 @@ STRIPFLAG=-s
|
||||||
CPMAC=/Developer/Tools/CpMac
|
CPMAC=/Developer/Tools/CpMac
|
||||||
|
|
||||||
APPTEMPLATE=$(srcdir)/Mac/OSXResources/app
|
APPTEMPLATE=$(srcdir)/Mac/OSXResources/app
|
||||||
APPSUBDIRS=MacOS Resources Resources/English.lproj
|
APPSUBDIRS=MacOS Resources Resources/English.lproj \
|
||||||
|
Resources/English.lproj/Documentation \
|
||||||
|
Resources/English.lproj/Documentation/doc \
|
||||||
|
Resources/English.lproj/Documentation/macpython_ide_tutorial
|
||||||
|
DOCDIR=$(srcdir)/Mac/OSXResources/app/Resources/English.lproj/Documentation
|
||||||
|
DOCINDEX=$(DOCDIR)/"Documentation idx"
|
||||||
CACHERSRC=$(srcdir)/Mac/scripts/cachersrc.py
|
CACHERSRC=$(srcdir)/Mac/scripts/cachersrc.py
|
||||||
compileall=$(srcdir)/Lib/compileall.py
|
compileall=$(srcdir)/Lib/compileall.py
|
||||||
bundlebuilder=$(srcdir)/Lib/plat-mac/bundlebuilder.py
|
bundlebuilder=$(srcdir)/Lib/plat-mac/bundlebuilder.py
|
||||||
|
@ -57,6 +62,9 @@ install_PythonLauncher:
|
||||||
DSTROOT=$(dstroot) INSTALL_PATH=$(PYTHONAPPSPATH) install
|
DSTROOT=$(dstroot) INSTALL_PATH=$(PYTHONAPPSPATH) install
|
||||||
|
|
||||||
install_Python:
|
install_Python:
|
||||||
|
@if test ! -f $(DOCINDEX); then \
|
||||||
|
echo WARNING: you should run Apple Help Indexing Tool on $(DOCDIR); \
|
||||||
|
fi
|
||||||
@for i in $(PYTHONAPPSDIR) $(APPINSTALLDIR) $(APPINSTALLDIR)/Contents; do \
|
@for i in $(PYTHONAPPSDIR) $(APPINSTALLDIR) $(APPINSTALLDIR)/Contents; do \
|
||||||
if test ! -d $$i; then \
|
if test ! -d $$i; then \
|
||||||
echo "Creating directory $$i"; \
|
echo "Creating directory $$i"; \
|
||||||
|
@ -82,6 +90,10 @@ install_Python:
|
||||||
*.py[co]) ;; \
|
*.py[co]) ;; \
|
||||||
*.orig) ;; \
|
*.orig) ;; \
|
||||||
*~) ;; \
|
*~) ;; \
|
||||||
|
*idx) \
|
||||||
|
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 \
|
||||||
|
@ -95,9 +107,6 @@ install_Python:
|
||||||
done; \
|
done; \
|
||||||
done
|
done
|
||||||
$(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) $(APPINSTALLDIR)/Contents/MacOS/python
|
$(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) $(APPINSTALLDIR)/Contents/MacOS/python
|
||||||
# Finally create the documentation symlink
|
|
||||||
$(LN) -fsn ../../../../English.lproj/Documentation $(APPINSTALLDIR)/Contents/Resources/English.lproj/Documentation
|
|
||||||
|
|
||||||
|
|
||||||
install_IDE: $(INSTALLED_PYTHONW)
|
install_IDE: $(INSTALLED_PYTHONW)
|
||||||
@if ! $(INSTALLED_PYTHONW) -c "import waste"; then \
|
@if ! $(INSTALLED_PYTHONW) -c "import waste"; then \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue