Lines 19-37
Link Here
|
19 |
key, value = [s.strip() for s in line.split('=',1)] |
19 |
key, value = [s.strip() for s in line.split('=',1)] |
20 |
branding_info[ key ] = value |
20 |
branding_info[ key ] = value |
21 |
|
21 |
|
22 |
build_revision = os.popen( 'svnversion -c "%s" 2>&1' % os.environ.get( 'PYSVN_EXPORTED_FROM', '..' ), 'r' ).read().strip() |
22 |
branding_info['BUILD'] = '0' |
23 |
# build_revision is either a range nnn:mmm or mmm |
|
|
24 |
# we only want the mmm |
25 |
build_revision = build_revision.split(':')[-1] |
26 |
print 'Info: revision %s' % build_revision |
27 |
|
28 |
revision, modifiers = re.compile( '(\d+)(.*)' ).search( build_revision ).groups() |
29 |
|
30 |
if modifiers: |
31 |
branding_info['BUILD'] = '0' |
32 |
else: |
33 |
branding_info['BUILD'] = revision |
34 |
|
35 |
|
23 |
|
36 |
# read all the input text |
24 |
# read all the input text |
37 |
text = file( input_filename, 'r' ).read() |
25 |
text = file( input_filename, 'r' ).read() |