implement 'fdroid init' to set up a barebones repo from scratch

This tries to auto-detect the SDK and NDK.  If it can't find the SDK, it
prompts the user to type in the path.  It also tries to find the most
recent version of the build-tools, and should also support the old
unversioned layout.
This commit is contained in:
Hans-Christoph Steiner 2013-11-01 20:39:32 -04:00
parent 94342ee43c
commit 9344bca245
2 changed files with 139 additions and 1 deletions

3
fdroid
View file

@ -22,6 +22,7 @@ import os
commands = [
"build",
"init",
"update",
"publish",
"verify",
@ -51,7 +52,7 @@ def main():
print_help()
sys.exit(1)
if not os.path.isfile('config.py'):
if command != 'init' and not os.path.isfile('config.py'):
print "Missing config file - is this a repo directory?"
sys.exit(2)