Mercurial > cpython-lru_cache-weakref
annotate Mac/BuildScript/scripts/postflight.documentation @ 83447:678564fc0962 3.3
#17789: test_random now works with unittest test discovery. Patch by Zachary Ware.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Fri, 19 Apr 2013 05:45:27 +0300 |
| parents | e8a1b5757067 |
| children |
| rev | line source |
|---|---|
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
1 #!/bin/sh |
|
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
2 |
|
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
3 PYVER="@PYVER@" |
|
67901
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
4 FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
5 FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
6 FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
7 APPDIR="/Applications/Python ${PYVER}" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
8 SHARE_DIR="${FWK}/share" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
9 SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
10 SHARE_DOCDIR_TO_FWK="../../.." |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
11 |
|
67901
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
12 # make link in /Applications/Python m.n/ for Finder users |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
13 if [ -d "${APPDIR}" ]; then |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
14 ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html" |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
15 fi |
|
67901
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
16 |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
17 # make share/doc link in framework for command line users |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
18 if [ -d "${SHARE_DIR}" ]; then |
|
81890
e8a1b5757067
Issue #16256: OS X installer now sets correct permissions for doc directory.
Ned Deily <nad@acm.org>
parents:
81800
diff
changeset
|
19 mkdir -m 775 -p "${SHARE_DOCDIR}" |
|
67901
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
20 # make relative link to html doc directory |
|
68083
a036c30ab5ae
Issue #11268: Prevent Mac OS X Installer failure if Documentation
Ned Deily <nad@acm.org>
parents:
67901
diff
changeset
|
21 ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html" |
|
67901
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
22 fi |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
23 |
