JIRA: DOCU-2 - Adding a job to build functest documentation from .rst files
[releng.git] / jjb / functest / build-docu.sh
1 #!/bin/bash
2 for file in $(find . -type f -iname '*.rst'); do
3         file_cut="${file%.*}"
4         html_file=$file_cut".html"
5         pdf_file=$file_cut".pdf"
6         rst2html $file > $html_file
7         rst2pdf $file -o $pdf_file
8 done