From 95c90f98a710731ab80cc014bcd1f99f68b58ffb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 19 Dec 2013 09:51:09 -0500 Subject: [PATCH] Add html2pdf script --- bin/html2pdf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/html2pdf diff --git a/bin/html2pdf b/bin/html2pdf new file mode 100755 index 00000000..1f77645f --- /dev/null +++ b/bin/html2pdf @@ -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/Li‌​brary/Formula/wkhtmltopdf.rb +fi + +wkhtmltopdf "$1" "$2"