Skip to content

Instantly share code, notes, and snippets.

@srijanshetty
Created May 21, 2015 07:04
Show Gist options
  • Save srijanshetty/d5b1122274e68b20e18d to your computer and use it in GitHub Desktop.
Save srijanshetty/d5b1122274e68b20e18d to your computer and use it in GitHub Desktop.
Git Hook for pdf2htmlEX
#!/usr/bin/env bash
set -e
branch=$(git rev-parse --abbrev-ref HEAD)
if [[ $branch == "master" ]]; then
xelatex cv
git checkout gh-pages
pdf2htmlEX --process-outline 0 --zoom 1.6 cv.pdf
mv cv.html index.html
git add index.html
git commit -m "Update to Website"
git push origin gh-pages
git checkout master
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment