From: Ciaran Gultnieks Date: Mon, 27 Feb 2012 20:38:00 +0000 (+0000) Subject: Docs for importing X-Git-Tag: 0.1~897 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=da6f344b8a16bffe663855ab93c3b2267b595ef2;p=fdroidserver.git Docs for importing --- diff --git a/docs/fdroid.texi b/docs/fdroid.texi index 897cf312..575c6620 100644 --- a/docs/fdroid.texi +++ b/docs/fdroid.texi @@ -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 diff --git a/docs/update.sh b/docs/update.sh index 8cc8dda0..7ecf2966 100755 --- a/docs/update.sh +++ b/docs/update.sh @@ -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