annotate Mac/BuildScript/scripts/postflight.documentation @ 84007:dbfbdf2b5c19 3.3

Fix #17967: For ftp urls CWD to target instead of hopping to each directory towards target. This fixes a bug where target is accessible, but parent directories are restricted.
author Senthil Kumaran <senthil@uthcode.com>
date Sat, 01 Jun 2013 08:27:06 -0700
parents e8a1b5757067
children
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
81890
e8a1b5757067 Issue #16256: OS X installer now sets correct permissions for doc directory.
Ned Deily <nad@acm.org>
parents: 81800
diff changeset
19 mkdir -m 775 -p "${SHARE_DOCDIR}"
67901
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