annotate Mac/BuildScript/scripts/postflight.documentation @ 81800:d54330c8daaa 3.2

Issue #14018: Backport OS X installer updates from 3.3.
author Ned Deily <nad@acm.org>
date Tue, 29 Jan 2013 00:08:32 -0800
parents a036c30ab5ae
children e8a1b5757067
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38673
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
1 #!/bin/sh
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
2
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
3 PYVER="@PYVER@"
67901
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
4 FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
5 FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
6 FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
7 APPDIR="/Applications/Python ${PYVER}"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
8 SHARE_DIR="${FWK}/share"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
9 SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
10 SHARE_DOCDIR_TO_FWK="../../.."
38673
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
11
67901
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
12 # make link in /Applications/Python m.n/ for Finder users
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
13 if [ -d "${APPDIR}" ]; then
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
14 ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html"
38673
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
15 fi
67901
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
16
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
17 # make share/doc link in framework for command line users
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
18 if [ -d "${SHARE_DIR}" ]; then
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
19 mkdir -p "${SHARE_DOCDIR}"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
20 # make relative link to html doc directory
68083
a036c30ab5ae Issue #11268: Prevent Mac OS X Installer failure if Documentation
Ned Deily <nad@acm.org>
parents: 67901
diff changeset
21 ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html"
67901
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
22 fi
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
23