Ignore:
Timestamp:
13/10/15 15:38:59 (5 years ago)
Author:
mjuckes
Message:

miscellaneous cleaning for package installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/manage/step1.py

    r359 r422  
    1717ii = string.join( open( 'versionConfig.tmpl' ).readlines() ) 
    1818tags = glob.glob( '../tags/*' ) 
     19 
    1920f1 = lambda x: map( int, string.split(x, '.' ) ) 
    2021def f1( vs ): 
     22  if vs == 'latest': 
     23    return (0,0) 
    2124  bits = string.split(vs, '.' ) 
    2225  estr = 'Version string should be "nn.nn" or "nn.[alpha|beta].nn": %s' % vs 
     
    5659  assert thistn > tn[-1], 'Requested tag not greater than last tag: %s' % str(tn[-1]) 
    5760 
    58 oo = open( '../trunk/src/versionConfig.py', 'w' ) 
     61oo = open( '../trunk/dreqPy/versionConfig.py', 'w' ) 
    5962for l in string.split( ii % (thistag, thiscomment), '\n' ): 
    6063  oo.write( '%s\n' % string.strip(l) ) 
Note: See TracChangeset for help on using the changeset viewer.