annotate Mac/BuildScript/scripts/postflight.documentation @ 81799:c2830debb15a 2.7

Issue #14018: Backport OS X installer updates from 3.3.
author Ned Deily <nad@acm.org>
date Tue, 29 Jan 2013 00:07:46 -0800
parents 284026e00342
children d64e0cf5f1a7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
bb757facbfa6 Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40049
diff changeset
19 mkdir -p "${SHARE_DOCDIR}"
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