def generate_shell_test(target, source, env):
 target = str(target[0])
 script = open(target, 'w')
 print >>script, '#!/bin/sh'
 print >>script, '# Auto generated wrapper shell script by blade\n'
 print >>script, 'set -e\n'
 for s in source:
  print >>script, ('. %s' % os.path.abspath(str(s)))
 print >>script
 script.close()
 os.chmod(target, 493)
 return None

def generate_shell_test ( target , source , env ) : target = str ( target [ 0 ] ) script = open ( target , 'w' ) print >> script , '#!/bin/sh' print >> script , '# Auto generated wrapper shell script by blade\n' print >> script , 'set -e\n' for s in source : print >> script , ( '. %s' % os . path . abspath ( str ( s ) ) ) print >> script script . close ( ) os . chmod ( target , 493 ) return None
generate a shell wrapper to run shell scripts in source one by one .