2f4d4d1c45
This includes a generic JSONStream library built on top of Text.JSON (somewhat hackishly). It would be possible to stream out a single json document describing all actions, but it's probably better for consumers if they can expect one json document per line, so I did it that way instead. Output from external programs used for transferring files is not currently hidden when outputting json, which probably makes it not very useful there. This may be dealt with if there is demand for json output for --get or --move to be parsable. The version, status, and find subcommands have hand-crafted output and don't do json. The whereis subcommand needs to be modified to produce useful json.
44 lines
1.7 KiB
Markdown
44 lines
1.7 KiB
Markdown
## OS-specific instructions
|
|
|
|
* [[OSX]]
|
|
* [[Debian]]
|
|
* [[Ubuntu]]
|
|
* [[Fedora]]
|
|
* [[FreeBSD]]
|
|
|
|
## Using cabal
|
|
|
|
As a haskell package, git-annex can be built using cabal. For example:
|
|
|
|
cabal install git-annex --bindir=$HOME/bin
|
|
|
|
## Installation by hand
|
|
|
|
To build and use git-annex, you will need:
|
|
|
|
* Haskell stuff
|
|
* [The Haskell Platform](http://haskell.org/platform/)
|
|
* [MissingH](http://github.com/jgoerzen/missingh/wiki)
|
|
* [pcre-light](http://hackage.haskell.org/package/pcre-light)
|
|
* [utf8-string](http://hackage.haskell.org/package/utf8-string)
|
|
* [SHA](http://hackage.haskell.org/package/SHA)
|
|
* [dataenc](http://hackage.haskell.org/package/dataenc)
|
|
* [monad-control](http://hackage.haskell.org/package/monad-control)
|
|
* [TestPack](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/testpack)
|
|
* [QuickCheck 2](http://hackage.haskell.org/package/QuickCheck)
|
|
* [HTTP](http://hackage.haskell.org/package/HTTP)
|
|
* [hS3](http://hackage.haskell.org/package/hS3) (optional, but recommended)
|
|
* [json](http://hackage.haskell.org/package/json)
|
|
* Shell commands
|
|
* [git](http://git-scm.com/)
|
|
* [uuid](http://www.ossp.org/pkg/lib/uuid/)
|
|
(or `uuidgen` from util-linux)
|
|
* [xargs](http://savannah.gnu.org/projects/findutils/)
|
|
* [rsync](http://rsync.samba.org/)
|
|
* [wget](http://www.gnu.org/software/wget/) or [curl](http://http://curl.haxx.se/) (optional, but recommended)
|
|
* [sha1sum](ftp://ftp.gnu.org/gnu/coreutils/) (optional, but recommended;
|
|
a sha1 command will also do)
|
|
* [gpg](http://gnupg.org/) (optional; needed for encryption)
|
|
* [ikiwiki](http://ikiwiki.info) (optional; used to build the docs)
|
|
|
|
Then just [[download]] git-annex and run: `make; make install`
|