Mercurial > cpython-lru_cache-weakref
annotate Mac/BuildScript/scripts/postflight.documentation @ 73807:1efefeda00a7 3.2
#8414: add more tests for "assert". Initial patch by Gregory Nofi.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Fri, 02 Dec 2011 18:22:52 +0200 |
| parents | a036c30ab5ae |
| children | 99708bb33bf7 |
| 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 DEV_DOCDIR="/Developer/Documentation" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
9 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
|
10 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
|
11 SHARE_DOCDIR_TO_FWK="../../.." |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
12 |
|
67901
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
13 # make link in /Developer/Documentation/ for Xcode users |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
14 if [ -d "${DEV_DOCDIR}" ]; then |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
15 if [ ! -d "${DEV_DOCDIR}/Python" ]; then |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
16 mkdir -p "${DEV_DOCDIR}/Python" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
17 fi |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
18 ln -fhs "${FWK_DOCDIR}" "${DEV_DOCDIR}/Python/Reference Documentation ${PYVER}" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
19 fi |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
20 |
|
67901
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
21 # 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
|
22 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
|
23 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
|
24 fi |
|
67901
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
25 |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
26 # 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
|
27 if [ -d "${SHARE_DIR}" ]; then |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
28 mkdir -p "${SHARE_DOCDIR}" |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
29 # 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
|
30 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
|
31 fi |
|
e9fb6d50459a
- Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents:
40450
diff
changeset
|
32 |
