diff options
author | Steven Knight <knight@baldmt.com> | 2002-03-23 16:12:25 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-03-23 16:12:25 (GMT) |
commit | 2fa424ece5fd4df18a3aeff1f6e59e2ecb41a28e (patch) | |
tree | 0fcb31652e4bf56a98d354125deccc5293ffa6f7 /src | |
parent | 2b87cbae264462efe494aa7ee07841ffb7ebaa0d (diff) | |
download | SCons-2fa424ece5fd4df18a3aeff1f6e59e2ecb41a28e.zip SCons-2fa424ece5fd4df18a3aeff1f6e59e2ecb41a28e.tar.gz SCons-2fa424ece5fd4df18a3aeff1f6e59e2ecb41a28e.tar.bz2 |
Support the build of TeX documents (Task 47116). (Steve Leblanc)
Diffstat (limited to 'src')
-rw-r--r-- | src/CHANGES.txt | 9 | ||||
-rw-r--r-- | src/engine/SCons/Defaults.py | 31 |
2 files changed, 38 insertions, 2 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 97ac313..b53da0f 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -15,6 +15,10 @@ RELEASE 0.06 - - Fix: Construction variables with values of 0 were incorrectly interpolated as ''. + - Support env['VAR'] to fetch construction variable values. + + - Man page: document Precious(). + From Charles Crain: - Fix command generators to expand construction variables. @@ -48,6 +52,9 @@ RELEASE 0.06 - - Add a --profile=FILE option to make profiling SCons easier. + - Modify the new DVI builder to create .dvi files from LaTeX (.ltx + and .latex) files. + From Steve Leblanc: - Add support for the -U option. @@ -55,6 +62,8 @@ RELEASE 0.06 - - Allow CPPPATH, LIBPATH and LIBS to be specified as white-space separated strings. + - Add a document builder to create .dvi files from TeX (.tex) files. + RELEASE 0.05 - Thu, 21 Feb 2002 16:50:03 -0600 diff --git a/src/engine/SCons/Defaults.py b/src/engine/SCons/Defaults.py index d58126e..26c59a6 100644 --- a/src/engine/SCons/Defaults.py +++ b/src/engine/SCons/Defaults.py @@ -106,6 +106,19 @@ Library = SCons.Builder.Builder(name = 'Library', src_suffix = '$OBJSUFFIX', src_builder = Object) +LaTeXAction = SCons.Action.Action('$LATEXCOM') + +DVI = SCons.Builder.Builder(name = 'DVI', + action = { '.tex' : '$TEXCOM', + '.ltx' : LaTeXAction, + '.latex' : LaTeXAction, + }, + # The suffix is not configurable via a + # construction variable like $DVISUFFIX + # because the output file name is + # hard-coded within TeX. + suffix = '.dvi') + CScan = SCons.Scanner.C.CScan() def get_devstudio_versions (): @@ -228,7 +241,14 @@ def make_win32_env_from_paths(include, lib, path): 'YACC' : 'yacc', 'YACCFLAGS' : '', 'YACCCOM' : '$YACC $YACCFLAGS -o $TARGET $SOURCES', - 'BUILDERS' : [CFile, CXXFile, Object, Program, Library], + 'TEX' : 'tex', + 'TEXFLAGS' : '', + 'TEXCOM' : '$TEX $TEXFLAGS $SOURCES', + 'LATEX' : 'latex', + 'LATEXFLAGS' : '', + 'LATEXCOM' : '$LATEX $LATEXFLAGS $SOURCES', + 'DVISUFFIX' : '.dvi', + 'BUILDERS' : [CFile, CXXFile, Object, Program, Library, DVI], 'SCANNERS' : [CScan], 'OBJPREFIX' : '', 'OBJSUFFIX' : '.obj', @@ -291,7 +311,14 @@ if os.name == 'posix': 'YACC' : 'yacc', 'YACCFLAGS' : '', 'YACCCOM' : '$YACC $YACCFLAGS -o $TARGET $SOURCES', - 'BUILDERS' : [CFile, CXXFile, Object, Program, Library], + 'TEX' : 'tex', + 'TEXFLAGS' : '', + 'TEXCOM' : '$TEX $TEXFLAGS $SOURCES', + 'LATEX' : 'latex', + 'LATEXFLAGS' : '', + 'LATEXCOM' : '$LATEX $LATEXFLAGS $SOURCES', + 'DVISUFFIX' : '.dvi', + 'BUILDERS' : [CFile, CXXFile, Object, Program, Library, DVI], 'SCANNERS' : [CScan], 'OBJPREFIX' : '', 'OBJSUFFIX' : '.o', |