Changeset 637
- Timestamp:
- 12/04/16 15:48:15 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMIP6dreq/manage/step1.py
r519 r637 10 10 """ 11 11 12 from pkg_resources import parse_version 12 13 import sys, os, glob, string, time 13 14 if os.path.isfile( 'step2.sh' ): … … 37 38 bits = string.split(vs, '.' ) 38 39 estr = 'Version string should be "nn.nn" or "nn.[alpha|beta].nn": %s' % vs 39 assert len(bits) in [2,3 ], estr40 assert len(bits) in [2,3,4], estr 40 41 if len( bits ) == 3: 41 42 assert bits[1] in ['alpha','beta'], estr … … 68 69 thiscomment = sys.argv[1] 69 70 thistag = version 70 thistn = tuple( f1( version ))71 thistn = parse_version( version ) 71 72 if len(tags) > 0: 72 tn = map( lambda x: tuple( f1(string.split(x,'/')[-1]) ), tags )73 tn.sort( tcmp)73 tn = map( parse_version, tags ) 74 tn.sort() 74 75 assert thistn > tn[-1], 'Requested tag not greater than last tag: %s' % str(tn[-1]) 75 76 … … 87 88 svn ci -m "Updated setup for tag %(thistag)s" 88 89 svn copy %(svnBaseUrl)s/trunk %(svnBaseUrl)s/tags/%(thistag)s -m "%(thiscomment)s" 90 91 ## cd %(svnBaseUrl)s/tags 92 ## svn del latest 93 ## svn ci -m "removed latest" 94 #svn copy %(svnBaseUrl)s/tags/%(thistag)s %(svnBaseUrl)s/tags/latest 89 95 """ 90 96
Note: See TracChangeset
for help on using the changeset viewer.