summaryrefslogtreecommitdiff
path: root/report/mkmd.sh
blob: 63544a774754806da87b4be280a157ce2030531f (plain)
  1. #!/bin/sh
  2. set -e
  3. #stem="Greens-IslandsofResiliences"
  4. stem="Greens-IslandsofResilience"
  5. pdftohtml -q -c -s -i -noframes -stdout "$stem.pdf" tmp
  6. infile=tmp.html
  7. outfile="${2:-$(basename "$infile" .html).md}"
  8. #perl ./normalize-html.pl tmp.html | less
  9. perl ./normalize-html.pl tmp.html \
  10.     |pandoc --normalize --no-wrap --parse-raw -f html -t markdown -o "$stem.md"
  11. pandoc --standalone --toc --css=styling.css -f markdown -t html5 -i "$stem.md" -o "$stem.html"