aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-makewebreport
diff options
context:
space:
mode:
Diffstat (limited to 'sitesummary-makewebreport')
-rwxr-xr-xsitesummary-makewebreport29
1 files changed, 29 insertions, 0 deletions
diff --git a/sitesummary-makewebreport b/sitesummary-makewebreport
new file mode 100755
index 0000000..681f460
--- /dev/null
+++ b/sitesummary-makewebreport
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# Make simple web page with summary information. This should be rewritten to use some
+# template system and be more flexible.
+#
+
+(
+cat <<EOF
+<html>
+<head>
+<title>sitesummary report</title>
+</head>
+<body>
+<h1>sitesummary report</h1>
+<pre>
+EOF
+
+for f in site-summary kernelversion-summary ; do
+ /usr/lib/sitesummary/$f
+ echo
+done
+
+cat <<EOF
+</pre>
+</body>
+EOF
+) > /var/lib/sitesummary/www/index.html
+
+exit 0