comparison 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
comparison
equal deleted inserted replaced
81798:6904e229833d 81799:c2830debb15a
3 PYVER="@PYVER@" 3 PYVER="@PYVER@"
4 FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}" 4 FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}"
5 FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation" 5 FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation"
6 FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}" 6 FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}"
7 APPDIR="/Applications/Python ${PYVER}" 7 APPDIR="/Applications/Python ${PYVER}"
8 DEV_DOCDIR="/Developer/Documentation"
9 SHARE_DIR="${FWK}/share" 8 SHARE_DIR="${FWK}/share"
10 SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}" 9 SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}"
11 SHARE_DOCDIR_TO_FWK="../../.." 10 SHARE_DOCDIR_TO_FWK="../../.."
12
13 # make link in /Developer/Documentation/ for Xcode users
14 if [ -d "${DEV_DOCDIR}" ]; then
15 if [ ! -d "${DEV_DOCDIR}/Python" ]; then
16 mkdir -p "${DEV_DOCDIR}/Python"
17 fi
18 ln -fhs "${FWK_DOCDIR}" "${DEV_DOCDIR}/Python/Reference Documentation ${PYVER}"
19 fi
20 11
21 # make link in /Applications/Python m.n/ for Finder users 12 # make link in /Applications/Python m.n/ for Finder users
22 if [ -d "${APPDIR}" ]; then 13 if [ -d "${APPDIR}" ]; then
23 ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html" 14 ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html"
24 fi 15 fi