Skip to content

Tribits tutorial 190 #267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tribits/doc/tribits_tutorial/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
*.html
*.tex
*.log
.log
.log
/*.aux
/*.log
/*.pdf
27 changes: 27 additions & 0 deletions tribits/doc/tribits_tutorial/generate-tutorial.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

function make_doc {
if [ -z ${1+x} ]; then
echo "no file specified to make_doc"
return 1
elif [ ! -f src/$1.rst ]; then
echo "File not found! $1.rst"
else
echo "Generating HTML and PDF files for ${1} ..."
cp src/$1.rst .
rst2html $1.rst $1.html
rst2latex $1.rst $1.tex
latex -output-format=pdf $1.tex
rm $1.aux
rm $1.out
rm $1.log
rm $1.toc
rm $1.rst
scp $1.pdf cupojoe.srn.sandia.gov:
fi
}

make_doc TribitsTutorial_ConvertAProject
make_doc TribitsTutorial_Dependencies
make_doc TribitsTutorial_HelloWorld
make_doc TribitsTutorial_ProjectStructure
Loading