Changeset 4802 for create_distribution.py
- Timestamp:
- Nov 8, 2007, 5:31:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
create_distribution.py
r4786 r4802 77 77 system(s) 78 78 79 80 79 # Store file with revision info for use with get_revision_number 81 80 store_version_info(destination_path=distro_dir+'/anuga', verbose=True) 82 81 83 # Zip it up 82 83 #----------------------------- 84 # Get validation_files as well 85 86 s = 'mkdir %s/anuga_validation' %distro_dir 87 system(s) 88 89 s = 'svn export anuga_validation/okushiri_2005 %s/anuga_validation/okushiri'\ 90 %(distro_dir) 91 print s 92 system(s) 93 94 s = 'svn export anuga_validation/solitary_waves %s/anuga_validation/solitary_waves'\ 95 %(distro_dir) 96 print s 97 system(s) 98 99 100 s = 'svn export anuga_validation/automated_validation_tests %s/anuga_validation/automated_validation_tests'\ 101 %(distro_dir) 102 print s 103 system(s) 104 105 106 # FIXME: Other validations in here!!! 107 108 109 #----------------------------- 110 # Get demos from user manual 111 112 #s = 'mkdir %s/anuga_demos' %distro_dir 113 #system(s) 114 115 s = 'svn export anuga_core/documentation/user_manual/demos %s/anuga_demos'\ 116 %(distro_dir) 117 print s 118 system(s) 119 120 121 #------------------ 122 # Zip everything up 84 123 s = 'cd %s;tar cvfz %s *' %(distro_dir, distro_filename) 85 124 print s … … 92 131 93 132 # Clean up 94 s = '/bin/rm -rf %s/anuga' %(distro_dir) 95 print s 96 system(s) 97 98 99 #----------------------------- 100 # Get validation_files as well 101 102 s = 'mkdir %s/anuga_validation' %distro_dir 103 system(s) 104 105 s = 'svn export anuga_validation/okushiri_2005 %s/anuga_validation/okushiri'\ 106 %(distro_dir) 107 print s 108 system(s) 109 110 s = 'svn export anuga_validation/solitary_waves %s/anuga_validation/solitary_waves'\ 111 %(distro_dir) 112 print s 113 system(s) 114 115 # Other validations in here!!! 116 117 # Zip it up 118 s = 'cd %s;tar cvfz anuga_validation-%s.tgz *'\ 119 %(distro_dir, revision) 120 print s 121 system(s) 122 123 # Move distro to release area 124 s = '/bin/mv %s/*.tgz %s' %(distro_dir, release_dir) 125 print s 126 system(s) 127 128 # Clean up 129 s = '/bin/rm -rf %s/anuga_validation' %(distro_dir) 130 print s 131 system(s) 132 133 134 #----------------------------- 135 # Get demos from user manual 136 137 #s = 'mkdir %s/anuga_demos' %distro_dir 138 #system(s) 139 140 s = 'svn export anuga_core/documentation/user_manual/demos %s/anuga_demos'\ 141 %(distro_dir) 142 print s 143 system(s) 144 145 # Zip it up 146 s = 'cd %s;tar cvfz anuga_demos-%s.tgz *'\ 147 %(distro_dir, revision) 148 print s 149 system(s) 150 151 # Move distro to release area 152 s = '/bin/mv %s/*.tgz %s' %(distro_dir, release_dir) 153 print s 154 system(s) 155 156 # Clean up 157 s = '/bin/rm -rf %s/anuga_demos' %(distro_dir) 158 print s 159 system(s) 133 s = '/bin/rm -rf %s/*' %(distro_dir) 134 print s 135 system(s) 136 137 160 138 161 139 … … 256 234 257 235 258 import sys; sys.exit()259 260 236 #---------------------------- 261 237 # Throw away code to drop all files into the RAMP download area … … 265 241 if get_user_name() == 'ole' and get_host_name() == 'nautilus': 266 242 243 244 answer = raw_input('Do you want to move this to perlite and ANU? Y/N [Y]') 245 if answer.lower() == 'n': 246 import sys; sys.exit() 247 248 249 #------------------------------ 250 print 'Uploading to sourceforge' 251 252 253 254 267 255 print 'Attempt to rsync data to perlite and datamining' 268 # Copy to RAMP256 # Copy to NHIP 269 257 s = 'rsync -avz %s/* onielsen@cyclone:/d/cit/1/cit/natural_hazard_impacts/downloads/ANUGA_install/%s' %(release_dir, 'anuga_%s' %revision) 270 258 print s
Note: See TracChangeset
for help on using the changeset viewer.