Skip to content

Instantly share code, notes, and snippets.

@alexsparrow
Created October 11, 2011 13:31
Show Gist options
  • Save alexsparrow/1278077 to your computer and use it in GitHub Desktop.
Save alexsparrow/1278077 to your computer and use it in GitHub Desktop.
Git post-receive hook for building thesis
#. /usr/share/doc/git-core/contrib/hooks/post-receive-email
#export GEM_HOME=/home/hep/as1604/.gems/
git checkout -f
cd $HOME/Research/thesis_workdir
cp -r packages/* ~/texmf
texhash $HOME/texmf
#ruby -I ~/.rubygem/lib -I ~/lib64/ruby/ ~/.gems/bin/rake pdf
source ~/.thesis_env/bin/activate
scons pdf
cp thesis.pdf ~/public_html/thesis/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment