Ignore:
Timestamp:
Aug 18, 2010, 1:46:51 PM (14 years ago)
Author:
habili
Message:

Manual updated to reflect changes in 1.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/documentation/user_manual/update_anuga_user_manual.py

    r7189 r7951  
    4141from os.path import expanduser, split, join
    4242from anuga.utilities.system_tools import get_revision_number, get_pathname_from_package
    43 from anuga.config import major_revision
     43from anuga.config import anuga_version
    4444from sys import argv
    4545
     
    4747
    4848# Path for ANUGA
    49 anugapath = get_pathname_from_package('anuga')
     49#anugapath = get_pathname_from_package('anuga')
    5050
    5151# Strip trailing source/anuga of path
    52 basepath = split(split(anugapath)[0])[0]
     52#basepath = split(split(anugapath)[0])[0]
    5353
    5454# Add local path to user_manual
    55 docpath = join(join(basepath, 'documentation'), 'user_manual')
     55#docpath = join(join(basepath, 'documentation'), 'user_manual')
    5656texfiles = ['anuga_user_manual',
    5757            'anuga_installation_guide',
     
    5959            'anuga_internal_tools']
    6060
    61 print 'Moving to', docpath
    62 chdir(docpath) # Move to location of LaTeX files
     61#print 'Moving to', docpath
     62#chdir(docpath) # Move to location of LaTeX files
    6363system('svn update') # Update from svn
    6464
     
    7777for line in fid.readlines():
    7878    if line.startswith('\\release'):
    79         try:
    80             line = '\\release{%s\\_%d}\n' %(major_revision,
    81                                             get_revision_number())
    82         except:
    83             line = '\\release{%s}\n' %(major_revision)
     79        line = '\\release{%s}\n' %(anuga_version)
    8480           
    8581    lines.append(line)
     
    115111
    116112# Clean-up
    117 system('/bin/rm version.tex')
     113#system('/bin/rm version.tex')
    118114system('svn update') # Restore version file
    119115
     
    122118print 'User manual compiled'
    123119
    124 print 'Major revision:', major_revision
     120print 'Anuga version:', anuga_version
    125121print 'Build:', get_revision_number()
    126122system('date')
Note: See TracChangeset for help on using the changeset viewer.