Exemple #1
0
def main():
    cli_parser = get_cli_parser()
    (options, commands) = cli_parser.parse_args()

    global host_spec
    host_spec = options.upload_host

    repo = get_repository(options)

    version_dict = misc.grok_sh_variables_str(repo.read_file('VERSION'))
    version_tup = tuple(
        map(version_dict.get,
            ('MAJOR_VERSION', 'MINOR_VERSION', 'PATCH_LEVEL')))
    version_tup = tuple(map(int, version_tup))

    version_db = versiondb.VersionDataBase(options.version_db)
    cmds = upload_binaries(repo, version_tup, version_db)

    if options.execute:
        cmds = [c for c in cmds if 'test-binary' not in c]
        for cmd in cmds:
            print(cmd)
            system(cmd)
    else:
        printf('\n\n')
        printf('\n'.join(cmds))
        printf('\n\n')
Exemple #2
0
def main ():
    (options, args) = parse_options ()

    options.version  = read_version (options.version_file)
    db = versiondb.VersionDataBase (options.version_db)
    options.build = db.get_next_build_number (options.version)
    
    if options.dry_run:
        def my_system (x):
            printf (x)
        global system
        system = my_system

    if options.output_distance_script:
        compare_test_info (options)
    if options.destination:
        upload (options)
Exemple #3
0
 def build_number(self):
     from gub import versiondb
     db = versiondb.VersionDataBase('versiondb/lilypond.versions')
     version_tup = misc.string_to_version(self.source.version())
     buildnumber = '%d' % db.get_next_build_number(version_tup)
     return buildnumber