/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1722 by jpye, Thu Jan 10 03:12:08 2008 UTC revision 1723 by jpye, Fri Jan 11 23:24:27 2008 UTC
# Line 1922  def CheckLatex2HTML(context): Line 1922  def CheckLatex2HTML(context):
1922  #----------------  #----------------
1923  # 'lmodern' package for LaTeX available?  # 'lmodern' package for LaTeX available?
1924    
1925  lmodern_test_text = """  lmodern_test_text = r"""
1926  \documentclass{article}  \documentclass{article}
1927    \usepackage{lmodern}
1928  \title{Cartesian closed categories and the price of eggs}  \title{Cartesian closed categories and the price of eggs}
1929  \author{Jane Doe}  \author{Jane Doe}
1930  \date{September 1994}  \date{September 1994}
# Line 1935  lmodern_test_text = """ Line 1936  lmodern_test_text = """
1936    
1937  def CheckLModern(context):  def CheckLModern(context):
1938      context.Message("Checking for lmodern...")      context.Message("Checking for lmodern...")
1939      print env['BUILDERS']      b = context.env.DVI
1940      b = env['BUILDERS']["DVI"]      is_ok = context.TryBuild(builder=b,text=lmodern_test_text,extension=".tex")
     print "Builder:",b  
     is_ok,res = context.TryBuild(builder=b,text=lmodern_test_text,extension=".latex")  
1941      context.Result(is_ok)      context.Result(is_ok)
1942      return is_ok      return is_ok
1943    
# Line 2309  if with_doc_build: Line 2308  if with_doc_build:
2308    
2309      with_latext2html = conf.CheckLatex2HTML()      with_latext2html = conf.CheckLatex2HTML()
2310    
2311      #if conf.CheckLModern() is False:      if conf.CheckLModern() is False:
2312      #   with_doc_build = False          with_doc_build = False
2313      #   without_doc_build_reason="'lmodern' is not available"          without_doc_build_reason="'lmodern' is not available"
2314    
2315  # TODO: -D_HPUX_SOURCE is needed  # TODO: -D_HPUX_SOURCE is needed
2316    

Legend:
Removed from v.1722  
changed lines
  Added in v.1723

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22