1#!/bin/sh 2 3PYVER="@PYVER@" 4FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}" 5FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation" 6FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}" 7APPDIR="/Applications/Python ${PYVER}" 8SHARE_DIR="${FWK}/share" 9SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}" 10SHARE_DOCDIR_TO_FWK="../../.." 11 12# make link in /Applications/Python m.n/ for Finder users 13if [ -d "${APPDIR}" ]; then 14 ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html" 15 if [ "${COMMAND_LINE_INSTALL}" != 1 ]; then 16 open "${APPDIR}" || true # open the applications folder 17 fi 18fi 19 20# make share/doc link in framework for command line users 21if [ -d "${SHARE_DIR}" ]; then 22 mkdir -m 775 -p "${SHARE_DOCDIR}" 23 # make relative link to html doc directory 24 ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html" 25fi 26 27