From 32bc98580ef1e34d81497bdc936794cb2598b06b Mon Sep 17 00:00:00 2001
From: Holger Levsen
Date: Sun, 28 Sep 2014 10:11:25 +0200
Subject: reproducible: create simple html statistics page with links to all
diffp files
---
bin/reproducible_stats.sh | 36 +++++++++++++++++++++---------------
1 file changed, 21 insertions(+), 15 deletions(-)
(limited to 'bin/reproducible_stats.sh')
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh
index f1ed81cf..aed99e8b 100755
--- a/bin/reproducible_stats.sh
+++ b/bin/reproducible_stats.sh
@@ -20,23 +20,29 @@ SOURCELESS=$(sqlite3 $PACKAGES_DB "SELECT name FROM source_packages WHERE status
COUNT_SOURCELESS=$(sqlite3 $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status = \"404\"" | xargs echo)
COUNT_TOTAL=$(sqlite3 $PACKAGES_DB "SELECT COUNT(name) FROM source_packages")
-echo
-echo "Simple statistics for reproducible builds as tested on jenkins.debian.net so far"
-echo
-echo "$COUNT_TOTAL packages attempted to build in total."
-echo
-echo "$COUNT_GOOD packages successfully built reproducibly: ${GOOD}"
-echo
-echo "$COUNT_BAD packages failed to built reproducibly: ${BAD}"
-echo
-echo "$COUNT_UGLY packages failed to build from source: ${UGLY}"
-echo "$COUNT_SOURCELESS packages doesn't exist in sid and need investigation: $SOURCELESS"
+htmlecho() {
+ echo "$1" >> index.html
+}
+rm index.html
-echo "Hello World
" > index.html
+htmlecho "" > index.html
+htmlecho
+htmlecho "Simple statistics for reproducible builds as tested on jenkins.debian.net so far
"
+htmlecho
+htmlecho "$COUNT_TOTAL packages attempted to build in total.
"
+htmlecho
+htmlecho "$COUNT_GOOD packages successfully built reproducibly: ${GOOD}
"
+htmlecho
+htmlecho "$COUNT_BAD packages failed to built reproducibly: "
for PKG in $BAD ; do
VERSION=$(sqlite3 $PACKAGES_DB "SELECT version FROM source_packages WHERE name = \"$PKG\"")
- echo "- diffp output for $PKG
" >> index.html
+ htmlecho "$PKG "
done
-echo "
" >> index.html
-
+htmlecho ""
+htmlecho
+htmlecho "$COUNT_UGLY packages failed to build from source: ${UGLY}
"
+htmlecho "$COUNT_SOURCELESS packages doesn't exist in sid and need investigation: $SOURCELESS"
+htmlecho ""
+# job output
+html2text index.html
--
cgit v1.2.3-70-g09d2