Changeset 5857 for devel


Ignore:
Timestamp:
Jun 6, 2012 11:40:34 AM (7 years ago)
Author:
jdsiiro
Message:

Updated to the reconfig script. It no longer automatically checks in
changes and instead gives you the appropriate command line and lets you
review what is about to be done first.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/reconfig

    r5692 r5857  
    5353        os.chdir(name+'_'+type)
    5454        OUTPUT = open('Externals','w')
    55         print >>OUTPUT, '\n'.join(externals)
     55        print >>OUTPUT, '\n'.join(sorted(externals))
    5656        OUTPUT.close()
    5757        commands.getoutput('svn add Externals')
    5858        commands.getoutput('svn propset -F Externals svn:externals .')
    59         commands.getoutput('svn commit -m "Updating externals"')
     59        #commands.getoutput('svn commit -m "Updating externals"')
     60        ci_needed = commands.getoutput('svn st')
    6061        os.chdir('..')
     62        if len(ci_needed):
     63            return [name+'_'+type]
     64    return []
    6165
    62 for file in glob.glob("../vpy/*.ini"):
    63     print "Processing "+file
    64     externals = parse(file, 'trunk')
    65     #
    66     name = os.path.splitext(os.path.basename(file))[0]
    67     #print name
    68     create(name, 'trunk', externals)
    6966
    70        
    71        
     67if __name__ == '__main__':
     68    checkins = []
     69    for file in glob.glob("../vpy/*.ini"):
     70        print "Processing "+file
     71        externals = parse(file, 'trunk')
     72        #
     73        name = os.path.splitext(os.path.basename(file))[0]
     74        #print name
     75        checkins.extend(create(name, 'trunk', externals))
     76
     77    if checkins:
     78        print "Commit needed.  Please review and execute:"
     79        print '   svn commit -m "Updating externals" '+' '.join(checkins)
     80    else:
     81        print "No changes detected; no commit needed."
    7282   
Note: See TracChangeset for help on using the changeset viewer.