Changeset 4786
- Timestamp:
- Nov 5, 2007, 3:16:20 PM (17 years ago)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/update_anuga_user_manual.py
r4785 r4786 32 32 from os.path import expanduser 33 33 from anuga.abstract_2d_finite_volumes.util import get_revision_number 34 from anuga.anuga_config import major_revision 34 35 from sys import argv 35 36 … … 49 50 msg = 'Unknown option: %s' %argv[1] 50 51 raise Exception(msg) 52 53 # Update version info 54 fid = open('version.tex') 55 lines = [] 56 for 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) 61 fid.close() 62 63 fid = open('version.tex', 'w') 64 fid.writelines(lines) 65 fid.close() 66 67 print 'Updated version info:' 68 for line in lines: 69 print line.strip() 70 71 #print 'Major revision', major_revision 72 #print 'build', get_revision_number() 73 51 74 52 75 for texfile in texfiles: -
anuga_core/documentation/user_manual/version.tex
r4785 r4786 7 7 % release version; this is used to define the 8 8 % \version macro 9 \release{1.0 \_unknown-build}9 \release{1.0beta\_4785} -
anuga_core/source/anuga/anuga_config.py
r4687 r4786 1 1 """Parameters knows across anuga model 2 2 """ 3 3 4 4 epsilon = 1.0e-12 5 5 default_boundary_tag = 'exterior' 6 7 # Major revision number for use with create_distribution 8 # and update_anuga_user_guide 9 major_revision = '1.0beta' -
anuga_core/source/anuga/config.py
r4768 r4786 5 5 #FIXME (Ole): Temporary access to global config file 6 6 from anuga_config import epsilon, default_boundary_tag 7 8 9 7 10 8 #FIXME (Ole): More of these may need to be moved to anuga_config.py -
create_distribution.py
r4532 r4786 27 27 from anuga.abstract_2d_finite_volumes.util import get_revision_number 28 28 from anuga.abstract_2d_finite_volumes.util import store_version_info 29 from anuga.anuga_config import major_revision 29 30 30 31 … … 36 37 37 38 # Define main version manually 38 major_revision = '1.0beta'39 # major_revision = '1.0beta' 39 40 40 41 # line separator
Note: See TracChangeset
for help on using the changeset viewer.