From f73926ea94c7f215549c6264e4ca5b756f0aeb3e Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sun, 2 Jan 2011 23:15:56 +0000 Subject: [PATCH] Added a build feature to be able to remove a specified file before building --- README | 4 ++++ build.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README b/README index 5e3f485e..9eb60b6a 100644 --- a/README +++ b/README @@ -104,6 +104,10 @@ configuration to the build. These are: documentation for the Repo field for more information. oldsdkloc=yes - The sdk location in the repo is in an old format target= - Specifies a particular SDK target, when the source doesn't + rm= - Specifies the relative path of file to delete before the + build is done. The path is relative to the base of the + build directory - i.e. the directory that contains + AndroidManifest.xml. Another example, using extra parameters: diff --git a/build.py b/build.py index 38cdb4a7..b0a525b7 100644 --- a/build.py +++ b/build.py @@ -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) -- 2.30.2