packages feed

notmuch-web-0.1.0: package.sh

#!/bin/bash

f="notmuch-`grep ^version notmuch-web.cabal | awk '{print $2}'`"
r="releases/$f"

cabal clean
cabal configure
cabal build
strip dist/build/notmuch-web/notmuch-web
mkdir -p $r
cp dist/build/notmuch-web/notmuch-web $r
cp README.md $r
cp -r static $r
rm -rf $r/static/tmp
mkdir -p $r/config
cp config/favicon.ico $r/config
cp config/robots.txt $r/config
cp config/settings.yml $r/config/settings.example.yml
cd releases
tar cvzf "$f.`uname -m`.tar.gz" $f