Ejemplo n.º 1
0
def bootstrap():
    repo = 'git://github.com/{0}.git'.format(conf['git']['remote']['tools'])

    if os.path.exists(buildsystem):
        import bootstrap_helper

        cmd = []
        cmd.append(['git', 'reset', '--quiet', '--hard', bootstrap_helper.reset_ref])
        cmd.append(['git', 'pull', '--quiet', 'origin', 'master'])

        for c in cmd:
            p = subprocess.Popen(c, cwd=buildsystem)
            p.wait()
        print('[bootstrap]: updated git repository.')
    else:
        p = subprocess.Popen([ 'git', 'clone', repo, buildsystem])
        p.wait()

        import bootstrap_helper
        print('[bootstrap]: created buildsystem directory.')

    bootstrap_helper.init_fabric(buildsystem, master_conf)
    bootstrap_helper.bootstrap()

    p = subprocess.Popen(['make', 'noop', '--silent', '-i'])
    p.wait()
Ejemplo n.º 2
0
def bootstrap():
    repo = '[email protected]:{0}.git'.format(conf['git']['remote']['tools'])

    if os.path.exists(buildsystem):
        import bootstrap_helper

        cmd = []
        cmd.append(
            ['git', 'reset', '--quiet', '--hard', bootstrap_helper.reset_ref])
        cmd.append(['git', 'pull', '--quiet', 'origin', 'master'])

        for c in cmd:
            p = subprocess.Popen(c, cwd=buildsystem)
            p.wait()
        print('[bootstrap]: updated git repository.')
    else:
        p = subprocess.Popen(['git', 'clone', repo, buildsystem])
        p.wait()

        import bootstrap_helper
        print('[bootstrap]: created buildsystem directory.')

    bootstrap_helper.init_fabric(buildsystem, master_conf)
    bootstrap_helper.bootstrap()

    p = subprocess.Popen(['make', 'noop', '--silent', '-i'])
    p.wait()
Ejemplo n.º 3
0
def bootstrap_base():
    if not os.path.exists(buildsystem):
        subprocess.call([ 'git', 'clone', repo, buildsystem])
        print('[bootstrap]: created buildsystem directory.')

    import bootstrap_helper

    bootstrap_helper.init_fabric(buildsystem, master_conf)
    bootstrap_helper.bootstrap()
    print('[bootstrap]: initialized buildsystem.')

    subprocess.call(['make', 'noop', '--silent', '-i'])
Ejemplo n.º 4
0
def bootstrap_base():
    if not os.path.exists(buildsystem):
        subprocess.call(["git", "clone", repo, buildsystem])
        print("[bootstrap]: created buildsystem directory.")

    import bootstrap_helper

    bootstrap_helper.init_fabric(buildsystem, master_conf)
    bootstrap_helper.bootstrap()
    print("[bootstrap]: initialized buildsystem.")

    subprocess.call(["make", "noop", "--silent", "-i"])
Ejemplo n.º 5
0
def bootstrap_base():
    if not os.path.exists(buildsystem):
        subprocess.call([ 'git', 'clone', repo, buildsystem])
        print('[bootstrap]: created buildsystem directory.')

    import bootstrap_helper

    bootstrap_helper.init_fabric(buildsystem, master_conf)
    bootstrap_helper.bootstrap()
    print('[bootstrap]: initialized buildsystem.')

    subprocess.call(['make', 'noop', '--silent', '-i'])