Changeset 449 for CMIP6dreq/manage


Ignore:
Timestamp:
26/10/15 08:45:10 (5 years ago)
Author:
mjuckes
Message:

add dreqML project

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/manage/step1.py

    r422 r449  
    55----- 
    66 
    7 python step1.py <version> "<comment on version>"  ## updates versionConfig.py and creates "step2.sh" 
     7python step1.py "<comment on version>"  ## updates versionConfig.py and creates "step2.sh" 
     8           Uses version specified in trunk 
    89bash step2.sh    ## checks trunk into repository, creates tagged version 
    910""" 
    1011 
    11 import sys, os, glob, string 
     12import sys, os, glob, string, time 
    1213if os.path.isfile( 'step2.sh' ): 
    1314  os.unlink( 'step2.sh' ) 
     15 
     16d1 = os.getcwd() 
     17print d1 
     18sys.path.append('../trunk/dreqPy' ) 
     19##os.chdir( '../trunk/dreqPy' ) 
     20##print os.getcwd() 
     21##time.sleep(1) 
     22##import packageConfig 
     23import __init__ 
     24version = __init__.__version__ 
     25##os.chdir( d1 ) 
    1426 
    1527svnBaseUrl = 'http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreq' 
     
    1830tags = glob.glob( '../tags/*' ) 
    1931 
    20 f1 = lambda x: map( int, string.split(x, '.' ) ) 
     32##f1 = lambda x: map( int, string.split(x, '.' ) ) 
    2133def f1( vs ): 
    2234  if vs == 'latest': 
     
    5264      return cmp( t1[0], t2[0] ) 
    5365     
    54 thistag, thiscomment = sys.argv[1:] 
    55 thistn = tuple( f1( thistag ) ) 
     66##thistag, thiscomment = sys.argv[1:] 
     67thiscomment = sys.argv[1] 
     68thistag = version 
     69thistn = tuple( f1( version ) ) 
    5670if len(tags) > 0: 
    5771  tn = map( lambda x: tuple( f1(string.split(x,'/')[-1]) ),  tags ) 
Note: See TracChangeset for help on using the changeset viewer.