chiark / gitweb /
Added a build feature to be able to remove a specified file before building
authorCiaran Gultnieks <ciaran@ciarang.com>
Sun, 2 Jan 2011 23:15:56 +0000 (23:15 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sun, 2 Jan 2011 23:15:56 +0000 (23:15 +0000)
README
build.py

diff --git a/README b/README
index 5e3f485ed204c689d7f4872e648c2b3de4484472..9eb60b6a47bab865dd222f9523f704a648646d3c 100644 (file)
--- 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=<target> - Specifies a particular SDK target, when the source doesn't
+ rm=<relpath>    - 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:
 
index 38cdb4a7c2dee57ef8f2117a619247a3be258985..b0a525b79d337f27dec90d6fa3b768d33b1f72ab 100644 (file)
--- 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)