Changeset 2968


Ignore:
Timestamp:
Aug 15, 2010 1:24:55 AM (9 years ago)
Author:
wehart
Message:

Adding the ability to link to stable branches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vpy/reconfig

    r2948 r2968  
    1010import commands
    1111
    12 for file in glob.glob("*.ini"):
    13     print "Processing "+file
    14     config = ConfigParser.ConfigParser()
    15     config.read(file)
     12def create(name,type):
    1613    #
    17     name = os.path.splitext(file)[0]
    18     if not os.path.exists(name+'_trunk'):
    19         print commands.getoutput('svn mkdir '+name+'_trunk')
     14    if not os.path.exists(name+'_'+type):
     15        print commands.getoutput('svn mkdir '+name+'_'+type)
    2016    #
    2117    externals = []
     
    2521                externals.append(section+' '+config.get(section,option))
    2622            elif option == 'root':
    27                 externals.append(section+' '+config.get(section,option)+'/trunk')
     23                externals.append(section+' '+config.get(section,option)+'/'+type)
    2824    if len(externals) > 0:
    29         os.chdir(name+'_trunk')
     25        os.chdir(name+'_'+type)
    3026        OUTPUT = open('Externals','w')
    3127        print >>OUTPUT, '\n'.join(externals)
     
    3632        os.chdir('..')
    3733
     34for file in glob.glob("*.ini"):
     35    print "Processing "+file
     36    config = ConfigParser.ConfigParser()
     37    config.read(file)
     38    #
     39    name = os.path.splitext(file)[0]
     40    create(name,'trunk')
     41    create(name,'stable')
     42
    3843       
    3944       
Note: See TracChangeset for help on using the changeset viewer.