summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-12 11:59:55 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-12 11:59:55 +0100
commit90da9e16a8e812942c13fc445777b1612a214f50 (patch)
tree24d9dfbcf1f93499a64a675bdbf867faed15c0e9 /bin/reproducible_common.sh
parente7999003ef65f1add2fe782b22391d5037c02c4c (diff)
downloadjenkins.debian.net-90da9e16a8e812942c13fc445777b1612a214f50.tar.xz
reproducible: refactor
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-xbin/reproducible_common.sh37
1 files changed, 17 insertions, 20 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index d09c9726..fec3f114 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -73,26 +73,6 @@ META_PKGSET[11]="grml"
META_PKGSET[12]="grml_build-depends"
META_PKGSET[13]="maint_pkg-perl-maintainers"
-init_html() {
- MAINVIEW="stats"
- ALLSTATES="reproducible FTBR FTBFS 404 not_for_us blacklisted"
- ALLVIEWS="issues notes no_notes scheduled last_24h last_48h all_abc dd-list pkg_sets suite_stats repo_stats stats"
- GLOBALVIEWS="issues notes no_notes scheduled repo_stats stats"
- SUITEVIEWS="dd-list suite_stats"
- SPOKENTARGET["issues"]="issues"
- SPOKENTARGET["notes"]="packages with notes"
- SPOKENTARGET["no_notes"]="packages without notes"
- SPOKENTARGET["scheduled"]="currently scheduled"
- SPOKENTARGET["last_24h"]="packages tested in the last 24h"
- SPOKENTARGET["last_48h"]="packages tested in the last 48h"
- SPOKENTARGET["all_abc"]="all tested packages (sorted alphabetically)"
- SPOKENTARGET["dd-list"]="maintainers of unreproducible packages"
- SPOKENTARGET["pkg_sets"]="package sets stats"
- SPOKENTARGET["suite_stats"]="suite: $SUITE"
- SPOKENTARGET["repo_stats"]="repositories overview"
- SPOKENTARGET["stats"]="reproducible stats"
-}
-
write_page() {
echo "$1" >> $PAGE
}
@@ -126,6 +106,23 @@ write_icon() {
write_page_header() {
rm -f $PAGE
+ MAINVIEW="stats"
+ ALLSTATES="reproducible FTBR FTBFS 404 not_for_us blacklisted"
+ ALLVIEWS="issues notes no_notes scheduled last_24h last_48h all_abc dd-list pkg_sets suite_stats repo_stats stats"
+ GLOBALVIEWS="issues notes no_notes scheduled repo_stats stats"
+ SUITEVIEWS="dd-list suite_stats"
+ SPOKENTARGET["issues"]="issues"
+ SPOKENTARGET["notes"]="packages with notes"
+ SPOKENTARGET["no_notes"]="packages without notes"
+ SPOKENTARGET["scheduled"]="currently scheduled"
+ SPOKENTARGET["last_24h"]="packages tested in the last 24h"
+ SPOKENTARGET["last_48h"]="packages tested in the last 48h"
+ SPOKENTARGET["all_abc"]="all tested packages (sorted alphabetically)"
+ SPOKENTARGET["dd-list"]="maintainers of unreproducible packages"
+ SPOKENTARGET["pkg_sets"]="package sets stats"
+ SPOKENTARGET["suite_stats"]="suite: $SUITE"
+ SPOKENTARGET["repo_stats"]="repositories overview"
+ SPOKENTARGET["stats"]="reproducible stats"
write_page "<!DOCTYPE html><html><head>"
write_page "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"
write_page "<link href=\"/userContent/static/style.css\" type=\"text/css\" rel=\"stylesheet\" />"