Changeset 391 for python/trunk/Mac/BuildScript/scripts
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Mac/BuildScript/scripts/postflight.documentation
r2 r391 2 2 3 3 PYVER="@PYVER@" 4 FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}" 5 FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation" 6 FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}" 7 APPDIR="/Applications/Python ${PYVER}" 8 SHARE_DIR="${FWK}/share" 9 SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}" 10 SHARE_DOCDIR_TO_FWK="../../.." 4 11 5 if [ -d /Developer/Documentation ]; then 6 if [ ! -d /Developer/Documentation/Python]; then7 mkdir -p /Developer/Documentation/Python 8 12 # make link in /Applications/Python m.n/ for Finder users 13 if [ -d "${APPDIR}" ]; then 14 ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html" 15 fi 9 16 10 ln -fhs /Library/Frameworks/Python.framework/Versions/${PYVER}/Resources/English.lproj/Documentation "/Developer/Documentation/Python/Reference Documentation @PYVER@" 17 # make share/doc link in framework for command line users 18 if [ -d "${SHARE_DIR}" ]; then 19 mkdir -m 775 -p "${SHARE_DOCDIR}" 20 # make relative link to html doc directory 21 ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html" 11 22 fi 23 -
python/trunk/Mac/BuildScript/scripts/postflight.framework
r2 r391 9 9 "${FWK}/bin/python@PYVER@" -Wi -tt \ 10 10 "${FWK}/lib/python${PYVER}/compileall.py" \ 11 - x badsyntax -x site-packages\11 -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 12 12 "${FWK}/lib/python${PYVER}" 13 13 14 14 "${FWK}/bin/python@PYVER@" -Wi -tt -O \ 15 15 "${FWK}/lib/python${PYVER}/compileall.py" \ 16 - x badsyntax -x site-packages\16 -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ 17 17 "${FWK}/lib/python${PYVER}" 18 19 "${FWK}/bin/python@PYVER@" -Wi \ 20 "${FWK}/lib/python${PYVER}/compileall.py" \ 21 -f -x badsyntax \ 22 "${FWK}/lib/python${PYVER}/site-packages" 23 24 "${FWK}/bin/python@PYVER@" -Wi -O \ 25 "${FWK}/lib/python${PYVER}/compileall.py" \ 26 -f -x badsyntax \ 27 "${FWK}/lib/python${PYVER}/site-packages" 18 28 19 29 chgrp -R admin "${FWK}" -
python/trunk/Mac/BuildScript/scripts/postflight.patch-profile
r2 r391 21 21 BSH="`basename "${theShell}"`" 22 22 case "${BSH}" in 23 bash|ksh|sh|*csh )23 bash|ksh|sh|*csh|zsh) 24 24 if [ `id -ur` = 0 ]; then 25 25 P=`su - ${USER} -c 'echo A-X-4-X@@$PATH@@X-4-X-A' | grep 'A-X-4-X@@.*@@X-4-X-A' | sed -e 's/^A-X-4-X@@//g' -e 's/@@X-4-X-A$//g'` … … 58 58 fi 59 59 echo "" >> "${RC}" 60 echo "# Setting PATH for MacPython ${PYVER}" >> "${RC}"60 echo "# Setting PATH for Python ${PYVER}" >> "${RC}" 61 61 echo "# The orginal version is saved in .cshrc.pysave" >> "${RC}" 62 62 echo "set path=(${PYTHON_ROOT}/bin "'$path'")" >> "${RC}" … … 77 77 fi 78 78 ;; 79 zsh) 80 PR="${HOME}/.zprofile" 81 ;; 79 82 *sh) 80 83 PR="${HOME}/.profile" … … 87 90 fi 88 91 echo "" >> "${PR}" 89 echo "# Setting PATH for MacPython ${PYVER}" >> "${PR}"92 echo "# Setting PATH for Python ${PYVER}" >> "${PR}" 90 93 echo "# The orginal version is saved in `basename ${PR}`.pysave" >> "${PR}" 91 94 echo 'PATH="'"${PYTHON_ROOT}/bin"':${PATH}"' >> "${PR}"
Note:
See TracChangeset
for help on using the changeset viewer.