diff --git a/README.pdf b/README.pdf index 3ea38bd..2abe9dd 100644 Binary files a/README.pdf and b/README.pdf differ diff --git a/bin/adoc2pdf b/bin/adoc2pdf index 57f335e..b1165e9 100755 --- a/bin/adoc2pdf +++ b/bin/adoc2pdf @@ -41,7 +41,22 @@ function install-fonts() { ) >/dev/null } + function install-graphicsmagick() { + local function="install-graphicsmagick-${BASHMATIC_OS}" + eval "${function}" +} + +function install-graphicsmagick-linux() { + local package="graphicsmagick" + sudo apt-get install -yqq ${package} || { + error "Failed to install ${package} package." + return 1 + } + return 0 +} + +function install-graphicsmagick-darwin() { local package="graphicsmagick" brew.cache-reset brew.install.package ${package}