Changeset 3902


Ignore:
Timestamp:
Nov 1, 2006, 1:56:27 PM (16 years ago)
Author:
ole
Message:

Small fixes in release script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • create_distribution.py

    r3892 r3902  
    4343distro_filename = 'anuga-%s.tgz' %revision
    4444
     45# Create area directory
     46release_dir = '~/anuga_release_%s' %revision
     47s = 'mkdir %s' %release_dir
     48try:
     49    system(s)
     50except:
     51    pass
     52
     53
    4554# Export a clean directory tree from the working copy
    4655distro_dir = mktemp()
     
    5867system(s)
    5968
     69# Move distro to release area
     70s = '/bin/mv %s/*.tgz %s' %(distro_dir, release_dir)
     71print s
     72system(s)
     73
    6074# Clean up
    6175s = '/bin/rm -rf %s/anuga' %(distro_dir)
     
    6377system(s)
    6478
     79
     80#-----------------------------
    6581# Get validation_files as well
    66 s = 'svn export anuga_validation/okushiri_2005 %s/okushiri' %(distro_dir)
     82
     83s = 'mkdir %s/anuga_validation' %distro_dir
     84system(s)
     85
     86s = 'svn export anuga_validation/okushiri_2005 %s/anuga_validation/okushiri'\
     87    %(distro_dir)
    6788print s
    6889system(s)
     
    7697system(s)
    7798
    78 # Clean up
    79 s = '/bin/rm -rf %s/okushiri' %(distro_dir)
     99# Move distro to release area
     100s = '/bin/mv %s/*.tgz %s' %(distro_dir, release_dir)
    80101print s
    81102system(s)
    82103
     104# Clean up
     105s = '/bin/rm -rf %s/anuga_validation' %(distro_dir)
     106print s
     107system(s)
     108
     109#-----------------------------
    83110# Copy anuga_viewer
    84111s = '/bin/cp ./anuga_core/source/anuga_viewer/distros/anuga_viewer_1.0.tgz %s'\
     
    87114system(s)
    88115
    89 # Move tar files to release area
    90 
    91 release_dir = '~/anuga_release_%s' %revision
    92 s = 'mkdir %s' %release_dir
    93 try:
    94     system(s)
    95 except:
    96     pass
    97 
     116# Move distro to release area
    98117s = '/bin/mv %s/*.tgz %s' %(distro_dir, release_dir)
    99118print s
    100119system(s)
     120
     121
     122#-----------------------------
    101123print 'Done'
    102124print
Note: See TracChangeset for help on using the changeset viewer.