#!/bin/sh git cat-file blob master:document.pdf > document.pdf nice convert -verbose -density 150 document.pdf -resize 1000 -quality 60 images/image-%03d.jpg cat > index.html <<"HTML"