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