analyze.sh: Factor out index.html template to a seperate file

To ease modification/testing.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I1798a2262614c74c6de4ecc00afe6b7f32155fdf
diff --git a/eclair/analyze_index_html.sh b/eclair/analyze_index_html.sh
new file mode 100755
index 0000000..8a25f83
--- /dev/null
+++ b/eclair/analyze_index_html.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+#
+# Copyright (c) 2022 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Template to produce index.html for the "full" build.
+
+cat <<EOF >index.html
+<html>
+<body>
+<h1>MISRA reports</h1>
+
+<p>
+TF-A Config: ${TF_CONFIG}<br />
+CI Build: <a href="${BUILD_URL}">${BUILD_URL}</a>
+</p>
+
+<li><a href="ECLAIR/full_txt/">Full TXT report</a>
+<li><a href="ECLAIR/full_html/index.html">Full HTML report</a>
+<li><a href="ECLAIR/full_html/by_service.html#strictness/service/first_file&strictness">Report by issue strictness (Mandatory/Required/Advisory) (HTML).</a>
+</body>
+</html>
+EOF