From 60cdd67de87a178470c5fa94831ce63fad4d1bf2 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 14 May 2015 11:38:37 +0200 Subject: reproducible: include pkg set navigation in all pkg set pages --- bin/reproducible_html_graphs.sh | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) (limited to 'bin/reproducible_html_graphs.sh') diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh index 5421f53a..d8eaca49 100755 --- a/bin/reproducible_html_graphs.sh +++ b/bin/reproducible_html_graphs.sh @@ -413,27 +413,36 @@ create_suite_stats_page() { } # -# create pkg sets pages +# create pkg set navigation # -create_pkg_sets_pages() { - # - # create index page - # - VIEW=pkg_sets - PAGE=index_${VIEW}.html - echo "$(date) - starting to write $PAGE page." - write_page_header $VIEW "Overview about reproducible builds of specific package sets in $SUITE/$ARCH" +create_pkg_sets_navigation() { + local i write_page "" +} + +# +# create pkg sets pages +# +create_pkg_sets_pages() { + # + # create index page + # + VIEW=pkg_sets + PAGE=index_${VIEW}.html + echo "$(date) - starting to write $PAGE page." + write_page_header $VIEW "Overview about reproducible builds of specific package sets in $SUITE/$ARCH" + create_pkg_sets_navigation write_page_footer publish_page $SUITE/$ARCH # @@ -443,11 +452,8 @@ create_pkg_sets_pages() { PAGE="pkg_set_${META_PKGSET[$i]}.html" echo "$(date) - starting to write $PAGE page." write_page_header $VIEW "Overview about reproducible builds for the ${META_PKGSET[$i]} package set in $SUITE/$ARCH" - for j in $(seq 1 ${#META_PKGSET[@]}) ; do - THUMB=${TABLE[6]}_${META_PKGSET[$j]}-thumbnail.png - LABEL="package set '${META_PKGSET[$j]}' in $SUITE/$ARCH" - write_page "\"$LABEL\"" - done + create_pkg_sets_navigation + write_page "
" META_RESULT=true gather_meta_stats $i # FIXME: this ignores unknown packages... if $META_RESULT ; then @@ -462,7 +468,7 @@ create_pkg_sets_pages() { fi LABEL="package set '${META_PKGSET[$j]}' in $SUITE/$ARCH" write_page "

\"$LABEL\"" - write_page "
The package set '${META_PKGSET[$i]}' in $SUITE/$ARCH consists of:
" + write_page "
The package set '${META_PKGSET[$i]}' in $SUITE/$ARCH consists of:
 
" set_icon unreproducible write_icon write_page "$COUNT_META_BAD ($PERCENT_META_BAD%) packages failed to built reproducibly:" @@ -486,6 +492,7 @@ create_pkg_sets_pages() { link_packages $META_REST write_page "
" fi + write_page " 
" set_icon reproducible write_icon write_page "$COUNT_META_GOOD packages ($PERCENT_META_GOOD%) successfully built reproducibly:" -- cgit v1.2.3-54-g00ecf