Example #1
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()
Example #2
0
def bootstrap():
    repo = conf["system"]["tools"]

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

        cmd = []

        if bootstrap_helper.reset_ref is not None:
            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_fs(buildsystem)
    bootstrap_helper.bootstrap()
def bootstrap():
    repo = conf['git']['url']

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

        cmd = []
        
        if bootstrap_helper.reset_ref is not None:
            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_fs(buildsystem)
    bootstrap_helper.bootstrap()
Example #4
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()
Example #5
0
def bootstrap():
    repo = conf['system']['tools']

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

        cmd = []

        if bootstrap_helper.reset_ref is not None:
            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_fs(buildsystem)
    bootstrap_helper.bootstrap()
Example #6
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.bootstrap(build_tools_path=buildsystem, conf_path=master_conf)
    print('[bootstrap]: initialized buildsystem.')

    subprocess.call(['make', 'noop', '--silent', '-i'])
Example #7
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.bootstrap(build_tools_path=buildsystem, conf_path=master_conf)
    print("[bootstrap]: initialized buildsystem.")

    subprocess.call(["make", "noop", "--silent", "-i"])
Example #8
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.bootstrap(build_tools_path=buildsystem, conf_path=master_conf)
    print('[bootstrap]: initialized buildsystem.')

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