#! /bin/sh

echo " PDF  documentation.org"
emacs -Q -q -nw --batch                                 \
      --eval "(require 'org)"                           \
      --eval "(require 'ox-latex)"                      \
      --eval "(load-file \"../tools/setup.el\")"        \
      --file ./documentation.org                        \
      -f org-latex-export-to-pdf

echo " HTML documentation.org"
emacs -Q -q -nw --batch                                 \
      --eval "(require 'org)"                           \
      --eval "(require 'ox-latex)"                      \
      --eval "(load-file \"../tools/setup.el\")"        \
      --file ./documentation.org                        \
      -f org-html-export-to-html
