2006-06-07 15:58:42 -03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PYVER="@PYVER@"
|
2011-02-07 12:52:25 -04:00
|
|
|
FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}"
|
|
|
|
FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation"
|
|
|
|
FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}"
|
|
|
|
APPDIR="/Applications/Python ${PYVER}"
|
|
|
|
SHARE_DIR="${FWK}/share"
|
|
|
|
SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}"
|
|
|
|
SHARE_DOCDIR_TO_FWK="../../.."
|
2006-06-07 15:58:42 -03:00
|
|
|
|
2011-02-07 12:52:25 -04:00
|
|
|
# make link in /Applications/Python m.n/ for Finder users
|
|
|
|
if [ -d "${APPDIR}" ]; then
|
|
|
|
ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html"
|
|
|
|
fi
|
2006-06-07 15:58:42 -03:00
|
|
|
|
2011-02-07 12:52:25 -04:00
|
|
|
# make share/doc link in framework for command line users
|
|
|
|
if [ -d "${SHARE_DIR}" ]; then
|
2013-02-01 17:58:00 -04:00
|
|
|
mkdir -m 775 -p "${SHARE_DOCDIR}"
|
2011-02-07 12:52:25 -04:00
|
|
|
# make relative link to html doc directory
|
2011-02-21 17:00:09 -04:00
|
|
|
ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html"
|
2006-06-07 15:58:42 -03:00
|
|
|
fi
|
2011-02-07 12:52:25 -04:00
|
|
|
|