]> git.somenet.org - fsinf/basics.git/blob - build-web.sh
GITOLITE.txt
[fsinf/basics.git] / build-web.sh
1 #!/bin/bash
2 # latexpand basics.tex > basics_web.tex
3 ./gitinfohook.sh
4 if [ -f /usr/bin/pandoc ]
5 then
6     pandoc \
7         --smart \
8         --data-dir . \
9         --template basics_web \
10         --toc \
11         --toc-depth=2 \
12         --email-obfuscation=references \
13         --output=basics.html \
14         basics.tex
15 else
16     echo "Error: pandoc executable is needed to generate web version"
17 fi