Added a build feature to be able to remove a specified file before building

This commit is contained in:
Ciaran Gultnieks 2011-01-02 23:15:56 +00:00
parent 2656a55af8
commit f73926ea94
2 changed files with 8 additions and 0 deletions

View file

@ -141,6 +141,10 @@ for app in apps:
f.write(props)
f.close()
#Delete unwanted file...
if thisbuild.has_key('rm'):
os.remove(os.path.join(root_dir, thisbuild['rm']))
# Build the release...
p = subprocess.Popen(['ant','release'], cwd=root_dir,
stdout=subprocess.PIPE)