Generate python3 docs

This commit is contained in:
Ihar Hrachyshka
2019-03-06 22:49:25 -08:00
committed by Frederik Rietdijk
parent 6a73992cfa
commit 43f9d5ccaa
10 changed files with 97 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
TYPES="html pdf-a4 pdf-letter text"
URL=http://docs.python.org/ftp/python/doc/VERSION/python-VERSION-docs-TYPE.tar.bz2
VERSIONS=$(curl http://www.python.org/download/releases/ 2>/dev/null | grep "releases/[123456789]"| cut -d/ -f4 |grep -v "^[12].[012345]" |grep -v "^1.6.1")
VERSIONS=$(for major in 2 3; do curl https://docs.python.org/$major/archives/ 2>/dev/null | perl -l -n -e'/<a href="python-([23].[0-9].[0-9]+)-docs-html.tar.bz2/ && print $1' | tail -n 1; done)
echo "Generating expressions for:
${VERSIONS}
"