1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

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

4
README
View File

@ -104,6 +104,10 @@ configuration to the build. These are:
documentation for the Repo field for more information. documentation for the Repo field for more information.
oldsdkloc=yes - The sdk location in the repo is in an old format 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 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: Another example, using extra parameters:

View File

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