fix document build (link list) 27/3527/1
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 23 Nov 2015 14:47:53 +0000 (23:47 +0900)
committerRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 23 Nov 2015 14:47:53 +0000 (23:47 +0900)
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Change-Id: Ic1ce4170fb748345b0371d02f97969be73e60d85

jjb/releng-macros.yaml

index e212763..c5bbef7 100644 (file)
                     "gs://$gs_path"/**.html
             fi
 
-            gerrit_comment="Document link(s): $(gsutil ls gs://$gs_path | grep -e 'index.html$' -e 'pdf$' | sed 's/^gs/http/')"
+            files=$(find docs/output | grep -e 'index.html$' -e 'pdf$' | \
+                    sed -e "s|^docs/output|    http://$gs_path|")
+            gerrit_comment="Document link(s):
+            $files"
             echo
             echo "$gerrit_comment"
             echo
                     "gs://$gs_path"/**.html
             fi
 
-            gerrit_comment="Document link(s): $(gsutil ls gs://$gs_path | grep -e 'index.html$' -e 'pdf$' | sed 's/^gs/http/')"
+            files=$(find docs/output | grep -e 'index.html$' -e 'pdf$' | \
+                    sed -e "s|^docs/output|    http://$gs_path|")
+            gerrit_comment="Document link(s):
+            $files"
             echo
             echo "$gerrit_comment"
             echo