示例#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)
示例#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'])
示例#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'])
示例#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)