Ejemplo n.º 1
0
def untar_local(tarname):
    '''Untar a repository shipped with the job'''
    install_path = os.getcwd()
    job_tools.untar_file(tarname, installPath, 'rat', os.getcwd(),
                         0)  # nothing to strip, but do need to move
    # For some reason, configure is not x by default
    job_tools.execute('chmod', ['u+x', 'rat/configure'], cwd=installPath)
Ejemplo n.º 2
0
def compile_rat():
    '''Compile local version of RAT'''
    temp_file = os.path.join(os.getcwd(), 'installerTemp.sh')
    rat_dir = os.path.join(os.getcwd(), 'rat')
    command_text = "\
#!/bin/bash\n \
source %s\n \
cd %s\n \
./configure \n \
source env.sh\n \
scons" % (temp_file, rat_dir)
    job_tools.execute_complex(command_text)
    #running locally, seems rat is not executable by default!
    job_tools.execute('chmod', ['u+x', 'rat/bin/rat'])
Ejemplo n.º 3
0
def compile_rat():
    '''Compile local version of RAT'''
    temp_file = os.path.join(os.getcwd(), 'installerTemp.sh')
    rat_dir   = os.path.join(os.getcwd(), 'rat')
    command_text = "\
#!/bin/bash\n \
source %s\n \
cd %s\n \
./configure \n \
source env.sh\n \
scons" % (temp_file, rat_dir)
    job_tools.execute_complex(command_text)
    #running locally, seems rat is not executable by default!
    job_tools.execute('chmod', ['u+x', 'rat/bin/rat'])
Ejemplo n.º 4
0
def untar_local(tarname):
    '''Untar a repository shipped with the job'''
    install_path = os.getcwd()
    job_tools.untar_file(tarname, installPath, 'rat', os.getcwd(), 0) # nothing to strip, but do need to move
    # For some reason, configure is not x by default
    job_tools.execute('chmod', ['u+x','rat/configure'], cwd=installPath)