JIRA: #2 update docs/enable_docu_gen.rst with latest image include code 26/426/1
authorVictor Laza <vlaza@cloudbasesolutions.com>
Tue, 28 Apr 2015 12:31:35 +0000 (15:31 +0300)
committerVictor Laza <vlaza@cloudbasesolutions.com>
Tue, 28 Apr 2015 12:31:35 +0000 (15:31 +0300)
Change-Id: Ie77e13aa5358f13011852739e792ab23ce5026c4
Signed-off-by: Victor Laza <vlaza@cloudbasesolutions.com>
docs/enable_docu_gen.rst

index 8dd1c02..d75f592 100644 (file)
@@ -94,6 +94,25 @@ example: cp releng/jjb/opnfvdocs/build-docu.sh releng/jjb/<your-project>/::
 
  done
 
+ images=()
+ while read -r -d ''; do
+         images+=("$REPLY")
+ done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0)
+
+ for img in "${{images[@]}}"; do
+
+         # uploading found images
+         echo "uploading $img"
+         cat "$img" | gsutil cp -L gsoutput.txt - \
+         gs://artifacts.opnfv.org/"$project"/"$img"
+         gsutil setmeta -h "Content-Type:image/jpeg" \
+                         -h "Cache-Control:private, max-age=0, no-transform" \
+                         gs://artifacts.opnfv.org/"$project"/"$img"
+         cat gsoutput.txt
+         rm -f gsoutput.txt
+
+ done
+
  #the double {{ in file_cut="${{file%.*}}" is to escape jjb's yaml
 
 
@@ -129,27 +148,6 @@ example: cp releng/jjb/opnfvdocs/build-docu.sh releng/jjb/<your-project>/::
 
  done
 
- images=()
- while read -r -d ''; do
-         images+=("$REPLY")
- done < <(find * -type f \( -iname \*.jpg -o -iname \*.png \) -print0)
-
- for img in "${{images[@]}}"; do
-
-         # uploading found images
-         echo "uploading $img"
-         cat "$img" | gsutil cp -L gsoutput.txt - \
-         gs://artifacts.opnfv.org/"$project"/"$img"
-         gsutil setmeta -h "Content-Type:image/jpeg" \
-                         -h "Cache-Control:private, max-age=0, no-transform" \
-                         gs://artifacts.opnfv.org/"$project"/"$img"
-         cat gsoutput.txt
-         rm -f gsoutput.txt
-
- done
-
-
-
  #the double {{ in file_cut="${{file%.*}}" is to escape jjb's yaml