Skip to content

Commit 865bdbf

Browse files
committedMar 28, 2014
Doc: do not compress .epub for dist, it is already zipped.
1 parent b760167 commit 865bdbf

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed
 

‎Doc/Makefile

+2-8
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,10 @@ dist:
136136
cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-letter.zip
137137
cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2
138138

139-
# archive the epub build
139+
# copy the epub build
140140
rm -rf build/epub
141141
make epub
142-
mkdir -p dist/python-$(DISTVERSION)-docs-epub
143-
cp -pPR build/epub/*.epub dist/python-$(DISTVERSION)-docs-epub/
144-
tar -C dist -cf dist/python-$(DISTVERSION)-docs-epub.tar python-$(DISTVERSION)-docs-epub
145-
bzip2 -9 -k dist/python-$(DISTVERSION)-docs-epub.tar
146-
(cd dist; zip -q -r -9 python-$(DISTVERSION)-docs-epub.zip python-$(DISTVERSION)-docs-epub)
147-
rm -r dist/python-$(DISTVERSION)-docs-epub
148-
rm dist/python-$(DISTVERSION)-docs-epub.tar
142+
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
149143

150144
check:
151145
$(PYTHON) tools/rstlint.py -i tools

‎Doc/tools/sphinxext/download.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ <h1>Download Python {{ release }} Documentation</h1>
3434
<td><a href="{{ dlbase }}/python-{{ release }}-docs-text.tar.bz2">Download</a> (ca. 1.5 MB)</td>
3535
</tr>
3636
<tr><td>EPUB</td>
37-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-epub.zip">Download</a> (ca. 3.5 MB)</td>
38-
<td><a href="{{ dlbase }}/python-{{ release }}-docs-epub.tar.bz2">Download</a> (ca. 3.5 MB)</td>
37+
<td><a href="{{ dlbase }}/python-{{ release }}-docs.epub">Download</a> (ca. 4.5 MB)</td>
38+
<td></td>
3939
</tr>
4040
</table>
4141

0 commit comments

Comments
 (0)