Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
iss #34: deb build instructions & shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
maizy committed Oct 3, 2014
1 parent 0b4c20f commit a981448
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build_deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
BIN=`which sbt`
SCRIPT_PATH=$(cd ${0%/*} && echo $PWD/${0##*/})
ROOT=`dirname "${SCRIPT_PATH}"`

if [ -z "${BIN}" ]; then
echo "sbt not found in ${PATH}"
exit 1
fi

cd "${ROOT}"

"${BIN}" 'debian:packageBin'
25 changes: 25 additions & 0 deletions docs/BuildDeb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Build .deb

## Prerequirements

* keemun checkout (via `git clone ...` or [tarball](https://github.com/maizy/zaglushka/archive/master.tar.gz))
* sbt([deb package available](http://www.scala-sbt.org/0.13/tutorial/Installing-sbt-on-Linux.html))
* deb packages `dpkg`, `fakeroot`

## How to

```bash
# checkout keemun
cd keemun/
./build_dev.sh
dpkg -i target/keemun_X.Y.Z-SNAPSHOT_all.deb
```
where `X.Y.Z` - current project version

## Supported OS

* Ubuntu 12.04
* Build tested on clean Ubuntu Server 12.04.5
* *TODO*: Ubuntu 14.04

Other .deb based OS also may work, but not tested.
5 changes: 5 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@

* [Backends API](Api.md)
* [Models](Models.md)

<a name="deploy"/>
## Deploy

* [Build .deb](BuildDeb.md)

0 comments on commit a981448

Please sign in to comment.