Changeset 3922
- Timestamp:
- Nov 6, 2006, 5:41:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
create_distribution.py
r3902 r3922 22 22 23 23 24 # Refresh sandit and retrieve minor revision number 24 # Refresh sandit and retrieve svn revision number 25 # from last line in svn update output 25 26 filename = mktemp() + '.txt' 26 27 … … 30 31 31 32 fid = open(filename) 32 l ine = fid.read()33 last_line = fid.readlines()[-1] 33 34 remove(filename) 34 35 if not line.startswith('At revision'): 36 msg = 'Unexpected output from svn up: %s' %line 35 if not last_line.startswith('At revision'): 36 msg = 'Unexpected output from svn up: %s' %last_line 37 37 raise Exception, msg 38 38 39 minor_revision =line[12:-2]39 svn_revision = last_line[12:-2] 40 40 41 revision = '%s_%s' %(major_revision, minor_revision)41 revision = '%s_%s' %(major_revision, svn_revision) 42 42 43 43 distro_filename = 'anuga-%s.tgz' %revision … … 119 119 system(s) 120 120 121 #----------------------------- 122 # Hey, why not compile and bundle up the LaTeX documentation as well 123 124 s = 'cd anuga_core/documentation/user_manual;' 125 s += 'python update_anuga_user_manual.py --no_html' 126 print s 127 system(s) 128 129 s = '/bin/mv anuga_core/documentation/user_manual/anuga_user_manual.pdf %s'\ 130 %(release_dir) 131 print s 132 system(s) 133 134 s = '/bin/mv anuga_core/documentation/user_manual/anuga_installation_guide.pdf %s'\ 135 %(release_dir) 136 print s 137 system(s) 138 139 121 140 122 141 #-----------------------------
Note: See TracChangeset
for help on using the changeset viewer.