mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
produce line directive output and clean up the generated files
This commit is contained in:
parent
dfb6062f9d
commit
fcd29459e4
1 changed files with 10 additions and 1 deletions
|
@ -31,6 +31,7 @@ def append_file (filename):
|
|||
f = open (filename, "rt")
|
||||
lines = f.readlines ()
|
||||
f.close ()
|
||||
current_file.append ('# 1 "' + filename + '"')
|
||||
for i in range (len (lines)):
|
||||
lines[i] = string.rstrip (lines[i])
|
||||
current_file = current_file + lines
|
||||
|
@ -185,10 +186,18 @@ def process_source (source_file):
|
|||
|
||||
do_preprogs_src ()
|
||||
for s in source_list:
|
||||
if s[0]=='#':
|
||||
continue # preprocessor directive
|
||||
process_source (s)
|
||||
f = open (progs_src, "wt")
|
||||
f.write (progs_dat + '\n\n')
|
||||
for l in qcc_list:
|
||||
f.write(l + '\n')
|
||||
f.close ()
|
||||
os.execlp ("qfcc", "qfcc")
|
||||
if not os.fork():
|
||||
os.execlp ("qfcc", "qfcc")
|
||||
else:
|
||||
os.wait()
|
||||
for l in qcc_list:
|
||||
os.unlink (l)
|
||||
os.unlink (progs_src)
|
||||
|
|
Loading…
Reference in a new issue