source: branches/Release2.1.1/doc/SConscript@ 2703

Last change on this file since 2703 was 1259, checked in by mar637, 18 years ago

Merge from Release2.1.0b tag

File size: 845 bytes
Line 
1import os,glob,shutil
2
3# import root environment
4Import( "env")
5myenv = env.Copy()
6# Maybe someday I can use env.DVI() to execute a re-run....
7if myenv["makedoc"].lower() == 'pdf':
8 dvif = myenv.File("#/userguide.dvi")
9 tmps = [ "userguide.aux", "userguide.log", "userguide.idx", "userguide.dvi"]
10 myenv.Command(dvif,"userguide.tex",
11 ["$LATEX $SOURCE", "$LATEX $SOURCE"])
12 pdfit = myenv.PDF("#/userguide.pdf", "#/userguide.dvi")
13 myenv.Install("#/doc", pdfit)
14 for f in tmps:
15 myenv.AddPostAction(pdfit, Delete(f))
16 myenv.AddPostAction(pdfit, Move("doc/userguide.pdf", str(pdfit[0])))
17elif myenv["makedoc"].lower() == 'html':
18 if os.path.exists("/usr/bin/latex2html"):
19 myenv.Command("userguide","userguide.tex",
20 "/usr/bin/latex2html -local_icons $TARGET" )
21#Return()
Note: See TracBrowser for help on using the repository browser.