Changeset 5746
- Timestamp:
- Sep 8, 2008, 4:47:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
create_distribution.py
r5540 r5746 245 245 246 246 247 from ftplib import FTP 248 ftp = FTP('upload.sourceforge.net') 249 print ftp.login() # Anonymous 250 print ftp.cwd('incoming') 251 252 253 for filename in os.listdir('.'): 254 print 'Uploading %s... ' %filename, 255 stdout.flush() 256 257 fid=open(filename, 'rb') 258 print ftp.storbinary('STOR %s' %filename, fid) 259 fid.close() 260 261 print 'FTP done' 262 print ftp.quit() 247 s = 'rsync -avP -e ssh *.tgz uniomni@frs.sourceforge.net:uploads/' 248 print s 249 os.system(s) 250 251 252 253 #from ftplib import FTP 254 #ftp = FTP('upload.sourceforge.net') 255 #print ftp.login() # Anonymous 256 #print ftp.cwd('incoming') 257 # 258 #for filename in os.listdir('.'): 259 # print 'Uploading %s... ' %filename, 260 # stdout.flush() 261 # 262 # fid=open(filename, 'rb') 263 # print ftp.storbinary('STOR %s' %filename, fid) 264 # fid.close() 265 # 266 #print 'FTP done' 267 #print ftp.quit() 263 268 264 269 print … … 289 294 290 295 291 #------------------------------292 print 'Uploading to sourceforge'293 294 295 296 296 297 297 print 'Attempt to rsync data to perlite and datamining' 298 # Copy to NHIP298 # Copy to Georisk 299 299 s = 'rsync -avz %s/* onielsen@cyclone:/d/cit/1/cit/natural_hazard_impacts/downloads/ANUGA_install/%s' %(release_dir, 'anuga_%s' %revision) 300 300 print s
Note: See TracChangeset
for help on using the changeset viewer.