Changeset 3107


Ignore:
Timestamp:
Jun 7, 2006, 10:21:11 AM (18 years ago)
Author:
ole
Message:

Added installation guide to auto-update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/user_manual/update_anuga_user_manual.py

    r2736 r3107  
    2626
    2727anugapath = os.path.expanduser('~/anuga/documentation/user_manual')
    28 texfile = 'anuga_user_manual'
     28texfiles = ['anuga_user_manual', 'anuga_installation_guide']
    2929
    3030os.chdir(anugapath) # Move to location of LaTeX files
    31 
    3231os.system('svn up') # Update from svn
    3332
    34 # Compile with LaTeX, makeindex etc
    35 for i in range(3):
    36     os.system('latex --interaction=nonstopmode %s.tex' %texfile)
    37     os.system('makeindex %s.idx' %texfile)
    38     os.system('makeindex mod%s.idx' %texfile)
    39     os.system('bibtex %s' %texfile)   
    4033
    41 # Create pdf file
    42 os.system('dvips %s -o %s.ps' %((texfile,)*2))   
    43 os.system('ps2pdf %s.ps' %texfile)   
     34for texfile in texfiles:
     35    print 'Processing %s' %texfile
     36    # Compile with LaTeX, makeindex etc
     37    for i in range(3):
     38        os.system('latex --interaction=nonstopmode %s.tex' %texfile)
     39        os.system('makeindex %s.idx' %texfile)
     40        os.system('makeindex mod%s.idx' %texfile)
     41        os.system('bibtex %s' %texfile)   
     42
     43    # Create pdf file
     44    os.system('dvips %s -o %s.ps' %((texfile,)*2))   
     45    os.system('ps2pdf %s.ps' %texfile)   
    4446     
    45 # Create html pages     
    46 os.system('latex2html %s' %texfile)
     47    # Create html pages     
     48    os.system('latex2html %s' %texfile)
    4749
Note: See TracChangeset for help on using the changeset viewer.