Add html2pdf script

This commit is contained in:
Henrik Lissner 2013-12-19 09:51:09 -05:00
parent 9938a3fae7
commit 95c90f98a7

10
bin/html2pdf Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env zsh
if ! is_mac; then
echo "Mac-only script!"
exit
elif ! command_exists wkhtmltopdf; then
brew install https://raw.github.com/mxcl/homebrew/6e2d550cf4961129a790bfb0973f8e88704f439d/Library/Formula/wkhtmltopdf.rb
fi
wkhtmltopdf "$1" "$2"