chiark / gitweb /
Docs for importing
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 27 Feb 2012 20:38:00 +0000 (20:38 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 27 Feb 2012 20:38:00 +0000 (20:38 +0000)
docs/fdroid.texi
docs/update.sh

index 897cf312e7250edf16e98da3ddae0d168dc1119d..575c66204ada1a96a58305166ceb78206be5d653 100644 (file)
@@ -44,6 +44,7 @@ Free Documentation License".
 * Setup::
 * Simple Binary Repository::
 * Building Applications::
+* Importing Applications::
 * Metadata::
 * Build Server::
 * GNU Free Documentation License::
@@ -313,6 +314,47 @@ what you want to do, so execution will stop straight away. However, you can
 override this if you're sure that's what you want, by using @code{--all}.
 
 
+@node Importing Applications
+@chapter Importing Applications
+
+To help with starting work on including a new application, @code{fdroid import}
+will take a URL and optionally some other parameters, and attempt to construct
+as much information as possible by analysing the source code. Basic usage is:
+
+@example
+./fdroid import --url=http://address.of.project
+@end example
+
+For this to work, the URL must point to a project format that the script
+understands. Currently this is limited to one of the following:
+
+@enumerate
+@item
+Gitorious - @code{https://gitorious.org/PROJECTNAME/REPONAME}
+@item
+Github - @code{https://github.com/USER/PROJECT}
+@item
+Google Code - @code{http://code.google.com/p/PROJECT/}
+(supports git, svn and hg repos)
+@end enumerate
+
+Depending on the project type, more or less information may be gathered. For
+example, the license will be retrieved from a Google Code project, but not a
+GitHub one.
+
+If the import is successful, a metadata file will be created. You will need to
+edit this further to check the information, and fill in the blanks.
+
+If it fails, you'll be told why. If it got as far as retrieving the source
+code, you can inspect it further by looking in @code{tmp/importer} where a full
+checkout will exist.
+
+A frequent cause of initial failure is that the project directory is actually
+a subdirectory in the repository. In this case, run the importer again using
+the @code{--subdir} option to tell it where. It will not attempt to determine
+this automatically, since there may be several options.
+
+
 @node Metadata
 @chapter Metadata
 
index 8cc8dda0450108bedc41e2c53da0902179b2caa8..7ecf2966c50bc763e91144a8a7313e0583704828 100755 (executable)
@@ -1,4 +1,5 @@
-#!/bin/sh
+#!/bin/bash
+set -e
 ./gendocs.sh --email admin@f-droid.org fdroid "F-Droid Server Manual"
 scp -r manual/* fdroid@f-droid.org:public_html/manual/
 rm fdroid.cps fdroid.ky fdroid.vr fdroid.aux fdroid.fn fdroid.log fdroid.toc