Changes in tools/jobfile.py [8786aa5:a5a8ca7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/jobfile.py
r8786aa5 ra5a8ca7 28 28 # 29 29 """ 30 Add a source/object file pair to a checkerjobfile30 Add a source/object file pair to a Stanse jobfile 31 31 """ 32 32 … … 37 37 def usage(prname): 38 38 "Print usage syntax" 39 print prname + " <JOBFILE> <SOURCE> < TARGET> <TOOL> <CATEGORY> [OPTIONS ...]"39 print prname + " <JOBFILE> <SOURCE> <OBJECT> [OPTIONS ...]" 40 40 41 41 def main(): 42 if (len(sys.argv) < 6):42 if (len(sys.argv) < 4): 43 43 usage(sys.argv[0]) 44 44 return … … 46 46 jobfname = sys.argv[1] 47 47 srcfname = sys.argv[2] 48 tgtfname = sys.argv[3] 49 toolname = sys.argv[4] 50 category = sys.argv[5] 48 objfname = sys.argv[3] 51 49 cwd = os.getcwd() 52 options = " ".join(sys.argv[ 6:])50 options = " ".join(sys.argv[4:]) 53 51 54 52 jobfile = file(jobfname, "a") 55 53 fcntl.lockf(jobfile, fcntl.LOCK_EX) 56 jobfile.write("{%s},{%s},{%s},{%s} ,{%s},{%s}\n" % (srcfname, tgtfname, toolname, category, cwd, options))54 jobfile.write("{%s},{%s},{%s},{%s}\n" % (srcfname, objfname, cwd, options)) 57 55 fcntl.lockf(jobfile, fcntl.LOCK_UN) 58 56 jobfile.close()
Note:
See TracChangeset
for help on using the changeset viewer.