Changeset 5746


Ignore:
Timestamp:
Sep 8, 2008, 4:47:05 PM (16 years ago)
Author:
ole
Message:

Updated create_release to use rsync to sourceforge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • create_distribution.py

    r5540 r5746  
    245245
    246246
    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()
    263268
    264269    print
     
    289294
    290295       
    291     #------------------------------
    292     print 'Uploading to sourceforge'
    293 
    294 
    295    
    296296
    297297    print 'Attempt to rsync data to perlite and datamining'
    298     # Copy to NHIP
     298    # Copy to Georisk
    299299    s = 'rsync -avz %s/* onielsen@cyclone:/d/cit/1/cit/natural_hazard_impacts/downloads/ANUGA_install/%s' %(release_dir, 'anuga_%s' %revision)
    300300    print s
Note: See TracChangeset for help on using the changeset viewer.