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)