diff -r 627ebd001708 Doc/Makefile --- a/Doc/Makefile Sun Feb 17 16:56:28 2013 +0200 +++ b/Doc/Makefile Sun Feb 17 22:57:26 2013 -0600 @@ -31,6 +31,7 @@ @echo " linkcheck to check all external links for integrity" @echo " coverage to check documentation coverage for library and C API" @echo " doctest to run doctests in the documentation" + @echo " idledoc to regenerate the IDLE help file" @echo " pydoc-topics to regenerate the pydoc topics file" @echo " dist to create a \"dist\" directory with archived docs for download" @echo " suspicious to check for suspicious markup in output text" @@ -115,6 +116,13 @@ @echo "Building finished; now copy build/pydoc-topics/topics.py" \ "to ../Lib/pydoc_data/topics.py" +idledoc: BULIDER = text +idledoc: SOURCES = library/idle.rst +idledoc: build + @echo "Build finished; now copying build/text/library/idle.txt to" \ + "../Lib/idlelib/help.txt." + @cp build/text/library/idle.txt ../Lib/idlelib/help.txt + htmlview: html $(PYTHON) -c "import webbrowser; webbrowser.open('build/html/index.html')" diff -r 627ebd001708 Doc/make.bat --- a/Doc/make.bat Sun Feb 17 16:56:28 2013 +0200 +++ b/Doc/make.bat Sun Feb 17 22:57:26 2013 -0600 @@ -14,6 +14,7 @@ if "%1" EQU "suspicious" goto build if "%1" EQU "linkcheck" goto build if "%1" EQU "changes" goto build +if "%1" EQU "idledoc" goto idledoc if "%1" EQU "checkout" goto checkout if "%1" EQU "update" goto update @@ -30,6 +31,7 @@ echo %this% suspicious echo %this% linkcheck echo %this% changes +echo %this% idledoc echo. goto end @@ -47,6 +49,12 @@ svn update tools/pygments goto end +:idledoc +call make.bat text library\idle.rst +echo Now copying build/text/library/idle.txt to ../Lib/idlelib/help.txt +copy build\text\library\idle.txt ..\Lib\idlelib\help.txt +goto end + :build if not exist build mkdir build if not exist build\%1 mkdir build\%1