Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add doc for 0install
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jun 23, 2015
1 parent 72e9da1 commit bd37fe2
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 17 deletions.
17 changes: 17 additions & 0 deletions docs/0install/setup.md
@@ -0,0 +1,17 @@
## Prerequisites

1. Install [0install](http://0install.net/injector.html) on your machine.

#### OpenJDK (For linux OS)

See [OpenJDK guide](http://openjdk.java.net/install/) for more information.

#### Oracle Java JRE (Windows and Mac OS)

See [Oracle Java SE](http://www.oracle.com/technetwork/java/javase/downloads/index.html) for more information.

#### Homebrew JRE (Mac OS)

- Install homebrew
- Install cask `brew install caskroom/cask/brew-cask`
- `brew cask install java`
45 changes: 43 additions & 2 deletions docs/installation.md
Expand Up @@ -11,9 +11,50 @@ sudo yum install zanata-client

*Note:* If you are not running the latest version of Fedora, the latest version of the client may not be available, so you might want to try the Ivy version (below).

## Installation with Ivy
## Installation with Ivy (Recommended)

The Ivy distribution of the client is a small script that will download the client the first time it is run. This distribution requires Apache Ivy to run.

1. See [Setup Ivy](/ivy/setup) for Apache Ivy installation.
2. Save [this script](https://raw.github.com/zanata/zanata-client-ivy/master/zanata-cli) somewhere on your path, and make sure it is executable. For example, assuming you have `~/bin in $PATH`,

```
cd ~/bin
wget https://raw.github.com/zanata/zanata-client-ivy/master/zanata-cli
chmod 755 zanata-cli
```

*Note:* It's a good idea to check for a new version of zanata-cli once in a while (especially when a new version of Zanata server is released).


## Installation with 0install

The 0install distribution of the client is to allow zanata-cli to be available on multiple platform. This distribution requires [0install](http://0install.net/) to run.

1. See [Setup 0install](/0install/setup) for 0install installation.
2. If you are new to Zanata-CLI, run command below to install zanata-cli.

```
0install -c add zanata-cli http://zanata.org/files/0install/zanata-cli.xml
```

Now you can run `zanata-cli --help` for more options.


If you already have a copy of zanata-cli in your machine and wish to keep 0install zanata-cli as a separate command, you can still run 0install with:

```
0launch http://zanata.org/files/0install/zanata-cli.xml {command}
```

#### Update 0install Zanata-CLI

To update Zanata CLI, run

```
0install update http://zanata.org/files/0install/zanata-cli.xml
```

See [Ivy installation](/ivy/installation) for more information.

## Manual Installation

Expand Down
12 changes: 0 additions & 12 deletions docs/ivy/installation.md

This file was deleted.

5 changes: 2 additions & 3 deletions mkdocs.yml
Expand Up @@ -11,9 +11,8 @@ pages:
- Installation: 'installation.md'
- Configuration: 'configuration.md'
- Command Hook: 'command-hook.md'
- Ivy:
- Installation: 'ivy/installation.md'
- Setup: 'ivy/setup.md'
- Ivy setup: 'ivy/setup.md'
- 0install setup: '0install/setup.md'
- Maven Plugin:
- Installation: 'maven-plugin/installation.md'
- Configuration: 'maven-plugin/configuration.md'
Expand Down

0 comments on commit bd37fe2

Please sign in to comment.