Mercurial > cpython-lru_cache-weakref
annotate Mac/BuildScript/scripts/postflight.documentation @ 82251:bb5a8564e186 2.7
Issue #13153: Tkinter functions now raise TclError instead of ValueError when
a unicode argument contains non-BMP character.
| author | Serhiy Storchaka <storchaka@gmail.com> |
|---|---|
| date | Mon, 18 Feb 2013 13:00:08 +0200 |
| parents | d64e0cf5f1a7 |
| children |
| rev | line source |
|---|---|
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
1 #!/bin/sh |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
2 |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
3 PYVER="@PYVER@" |
|
67902
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
4 FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}" |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
5 FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation" |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
6 FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}" |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
7 APPDIR="/Applications/Python ${PYVER}" |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
8 SHARE_DIR="${FWK}/share" |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
9 SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}" |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
10 SHARE_DOCDIR_TO_FWK="../../.." |
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
11 |
|
67902
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
12 # make link in /Applications/Python m.n/ for Finder users |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
13 if [ -d "${APPDIR}" ]; then |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
14 ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html" |
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
15 fi |
|
67902
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
16 |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
17 # make share/doc link in framework for command line users |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
18 if [ -d "${SHARE_DIR}" ]; then |
|
81889
d64e0cf5f1a7
Issue #16256: OS X installer now sets correct permissions for doc directory.
Ned Deily <nad@acm.org>
parents:
81799
diff
changeset
|
19 mkdir -m 775 -p "${SHARE_DOCDIR}" |
|
67902
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
20 # make relative link to html doc directory |
|
67980
284026e00342
Merged revisions 88475 via svnmerge from
Ned Deily <nad@acm.org>
parents:
67902
diff
changeset
|
21 ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html" |
|
67902
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
22 fi |
|
bb757facbfa6
Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40049
diff
changeset
|
23 |
