| Last change
 on this file was             391, checked in by dmik, 12 years ago | 
        
          | 
python: Merge vendor 2.7.6 to trunk.
 | 
        
          | 
              
Property                 svn:eol-style
 set to                 native | 
        
          | File size:
            759 bytes | 
      
      
| Line |  | 
|---|
| 1 | #!/bin/sh | 
|---|
| 2 |  | 
|---|
| 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="../../.." | 
|---|
| 11 |  | 
|---|
| 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 | 
|---|
| 16 |  | 
|---|
| 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" | 
|---|
| 22 | fi | 
|---|
| 23 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.