- Timestamp:
- Aug 18, 2010, 1:46:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/documentation/user_manual/update_anuga_user_manual.py
r7189 r7951 41 41 from os.path import expanduser, split, join 42 42 from anuga.utilities.system_tools import get_revision_number, get_pathname_from_package 43 from anuga.config import major_revision43 from anuga.config import anuga_version 44 44 from sys import argv 45 45 … … 47 47 48 48 # Path for ANUGA 49 anugapath = get_pathname_from_package('anuga')49 #anugapath = get_pathname_from_package('anuga') 50 50 51 51 # Strip trailing source/anuga of path 52 basepath = split(split(anugapath)[0])[0]52 #basepath = split(split(anugapath)[0])[0] 53 53 54 54 # Add local path to user_manual 55 docpath = join(join(basepath, 'documentation'), 'user_manual')55 #docpath = join(join(basepath, 'documentation'), 'user_manual') 56 56 texfiles = ['anuga_user_manual', 57 57 'anuga_installation_guide', … … 59 59 'anuga_internal_tools'] 60 60 61 print 'Moving to', docpath62 chdir(docpath) # Move to location of LaTeX files61 #print 'Moving to', docpath 62 #chdir(docpath) # Move to location of LaTeX files 63 63 system('svn update') # Update from svn 64 64 … … 77 77 for line in fid.readlines(): 78 78 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) 84 80 85 81 lines.append(line) … … 115 111 116 112 # Clean-up 117 system('/bin/rm version.tex')113 #system('/bin/rm version.tex') 118 114 system('svn update') # Restore version file 119 115 … … 122 118 print 'User manual compiled' 123 119 124 print ' Major revision:', major_revision120 print 'Anuga version:', anuga_version 125 121 print 'Build:', get_revision_number() 126 122 system('date')
Note: See TracChangeset
for help on using the changeset viewer.