Changeset 4786


Ignore:
Timestamp:
Nov 5, 2007, 3:16:20 PM (17 years ago)
Author:
ole
Message:

Moved major revision info to anuga_config, updated scripts and made userguide include build number in its header.

Files:
5 edited

Legend:

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

    r4785 r4786  
    3232from os.path import expanduser
    3333from anuga.abstract_2d_finite_volumes.util import get_revision_number
     34from anuga.anuga_config import major_revision
    3435from sys import argv
    3536
     
    4950        msg = 'Unknown option: %s' %argv[1]
    5051        raise Exception(msg)
     52
     53# Update version info
     54fid = open('version.tex')
     55lines = []
     56for line in fid.readlines():
     57    if line.startswith('\\release'):
     58        line = '\\release{%s\\_%d}\n' %(major_revision,
     59                                       get_revision_number())
     60    lines.append(line)
     61fid.close()
     62
     63fid = open('version.tex', 'w')
     64fid.writelines(lines)
     65fid.close()
     66
     67print 'Updated version info:'
     68for line in lines:   
     69    print line.strip()
     70
     71#print 'Major revision', major_revision
     72#print 'build', get_revision_number()
     73
    5174   
    5275for texfile in texfiles:
  • anuga_core/documentation/user_manual/version.tex

    r4785 r4786  
    77% release version; this is used to define the
    88% \version macro
    9 \release{1.0\_unknown-build}
     9\release{1.0beta\_4785}
  • anuga_core/source/anuga/anuga_config.py

    r4687 r4786  
    11"""Parameters knows across anuga model
    22"""
    3        
     3
    44epsilon = 1.0e-12
    55default_boundary_tag = 'exterior'
     6
     7# Major revision number for use with create_distribution
     8# and update_anuga_user_guide
     9major_revision = '1.0beta'
  • anuga_core/source/anuga/config.py

    r4768 r4786  
    55#FIXME (Ole): Temporary access to global config file
    66from anuga_config import epsilon, default_boundary_tag
    7 
    8 
    97
    108#FIXME (Ole): More of these may need to be moved to anuga_config.py
  • create_distribution.py

    r4532 r4786  
    2727from anuga.abstract_2d_finite_volumes.util import get_revision_number
    2828from anuga.abstract_2d_finite_volumes.util import store_version_info
     29from anuga.anuga_config import major_revision
    2930
    3031
     
    3637
    3738# Define main version manually
    38 major_revision = '1.0beta'
     39# major_revision = '1.0beta'
    3940
    4041# line separator
Note: See TracChangeset for help on using the changeset viewer.