11afabdcf1ebd4982c7b7855ff676e39aeb35207
[releng.git] / jjb / genesis / build-docu.sh
1 #!/bin/bash
2 set -xv
3 for file in $(find . -type f -iname '*.rst'); do
4         file_cut="${{file%.*}}"
5         html_file=$file_cut".html"
6         pdf_file=$file_cut".pdf"
7         rst2html $file > $html_file
8         rst2pdf $file -o $pdf_file
9         gs_cp_folder=$(echo $file| cut -d "/" -f2,3)
10         /usr/local/bin/gsutil cp $html_file gs://artifacts.opnfv.org/genesis/$gs_cp_folder/
11         /usr/local/bin/gsutil cp $pdf_file gs://artifacts.opnfv.org/genesis/$gs_cp_folder/
12 done