Last active
December 22, 2015 10:29
-
-
Save dstrelau/6459142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
which curl || sudo apt-get install -y curl | |
which ruby || sudo apt-get install -y ruby1.9.1 | |
which mkmf || sudo apt-get install -y ruby1.9.1-dev | |
which fpm || sudo gem install fpm | |
export GOROOT=$PWD/go | |
export PATH=$PATH:$GOROOT/bin | |
[ -d go ] || curl https://go.googlecode.com/files/go1.1.2.linux-amd64.tar.gz | tar xz | |
if [ ! -d lumberjack ] ; then | |
git clone git://github.com/jordansissel/lumberjack.git | |
patch lumberjack/Makefile <<-EOF | |
1c1 | |
< VERSION=0.1.2 | |
--- | |
> VERSION=0.2.0-tc1 | |
EOF | |
fi | |
pushd lumberjack | |
make | |
make deb | |
mv lumberjack*.deb .. | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment