Skip to content

Instantly share code, notes, and snippets.

@dstrelau
Last active December 22, 2015 10:29
Show Gist options
  • Save dstrelau/6459142 to your computer and use it in GitHub Desktop.
Save dstrelau/6459142 to your computer and use it in GitHub Desktop.
#!/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