ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
27 lines
879 B
Bash
Executable File
27 lines
879 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PYVER="@PYVER@"
|
|
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="../../.."
|
|
|
|
# make link in /Applications/Python m.n/ for Finder users
|
|
if [ -d "${APPDIR}" ]; then
|
|
ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html"
|
|
if [ "${COMMAND_LINE_INSTALL}" != 1 ]; then
|
|
open "${APPDIR}" || true # open the applications folder
|
|
fi
|
|
fi
|
|
|
|
# make share/doc link in framework for command line users
|
|
if [ -d "${SHARE_DIR}" ]; then
|
|
mkdir -m 775 -p "${SHARE_DOCDIR}"
|
|
# make relative link to html doc directory
|
|
ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html"
|
|
fi
|
|
|