Debian Codegraph @

cmake/tribits/doc/tutorial/generate-tutorial.sh

raw
1 #!/bin/bash
2
3 function make_doc {
4 if [ -z ${1+x} ]; then
5 echo "no file specified to make_doc"
6 return 1
7 elif [ ! -f src/$1.rst ]; then
8 echo "File not found! $1.rst"
9 else
10 echo "Generating HTML and PDF files for ${1} ..."
11 cp src/$1.rst .
12 rst2html $1.rst $1.html
13 rst2latex $1.rst $1.tex
14 latex -output-format=pdf $1.tex
15 fi
16 }
17
18 make_doc TribitsTutorial_ConvertAProject
19 make_doc TribitsTutorial_Dependencies
20 make_doc TribitsTutorial_HelloWorld
21 make_doc TribitsTutorial_ProjectStructure