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/