mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
add another way to specify an alternate name for the documentation set,
so that this is harder to forget to do for development of new styles
This commit is contained in:
parent
bbc0d4409c
commit
1681b62251
2 changed files with 12 additions and 1 deletions
|
@ -3,3 +3,4 @@
|
|||
*.zip
|
||||
*.tar
|
||||
pkglist.html
|
||||
.doctype
|
||||
|
|
|
@ -26,6 +26,7 @@ else
|
|||
DOCTYPE="devel"
|
||||
fi
|
||||
|
||||
DOCTYPE_SPECIFIED=false
|
||||
EXPLANATION=''
|
||||
ANNOUNCE=true
|
||||
|
||||
|
@ -55,6 +56,7 @@ while [ "$#" -gt 0 ] ; do
|
|||
;;
|
||||
-t)
|
||||
DOCTYPE="$2"
|
||||
DOCTYPE_SPECIFIED=true
|
||||
shift 2
|
||||
;;
|
||||
-F)
|
||||
|
@ -99,9 +101,17 @@ else
|
|||
exit 2
|
||||
fi
|
||||
|
||||
# switch to .../Doc/
|
||||
cd ..
|
||||
|
||||
# now in .../Doc/
|
||||
# If $DOCTYPE was not specified explicitly, look for .doctype in
|
||||
# .../Doc/ and use the content of that file if present.
|
||||
if $DOCTYPE_SPECIFIED ; then
|
||||
:
|
||||
elif [ -f .doctype ] ; then
|
||||
DOCTYPE="`cat .doctype`"
|
||||
fi
|
||||
|
||||
make --no-print-directory ${PKGTYPE}html || exit $?
|
||||
PACKAGE="html-$VERSION.$PKGEXT"
|
||||
scp "$PACKAGE" tools/update-docs.sh $TARGET/ || exit $?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue