Skip to content

Instantly share code, notes, and snippets.

@kowey
Created December 2, 2009 14:59
Show Gist options
  • Save kowey/247252 to your computer and use it in GitHub Desktop.
Save kowey/247252 to your computer and use it in GitHub Desktop.
#!/bin/bash
export http_proxy=proxy.brighton.ac.uk:80
cd ${HOME}/darcs.net
echo ======================================================================
echo building
echo ======================================================================
cabal configure -ftest
cabal build
echo ======================================================================
echo unit tests
echo ======================================================================
dist/build/unit/unit
echo ======================================================================
echo darcs check
echo ======================================================================
(\
darcs check --test &&\
darcs push -a darcs-unstable@darcs.net:darcs &&\
cabal haddock --internal --hoogle &&\
rsync -av dist/doc/html/* darcs-unstable@darcs.net:darcs/api-doc\
) || (echo "THERE WAS A PROBLEM!" ; exit 1)
echo ======================================================================
echo done pushing to darcs.net!
echo ======================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment