From 4d1ea7a968dc62dcf58cbd424118ae7292431330 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 12 Dec 2015 11:17:57 +0100 Subject: reproducible archlinux: refactor, make webpage creation almost atomic --- bin/reproducible_html_archlinux.sh | 55 ++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh index 8c1f0954..674d16a3 100755 --- a/bin/reproducible_html_archlinux.sh +++ b/bin/reproducible_html_archlinux.sh @@ -11,33 +11,8 @@ common_init "$@" . /srv/jenkins/bin/reproducible_common.sh # -# create the webpage +# analyse results to create the webpage # -DATE=$(date -u +'%Y-%m-%d') -ARCHBASE=$BASE/archlinux -cd $ARCHBASE -PAGE=archlinux.html -echo "$(date -u) - starting to build $PAGE" -cat > $PAGE <<- EOF - - - - - Repoducible Arch Linux ?! - - - -
- -
-
-

Reproducible Arch Linux?!

-
- -EOF -write_page_intro 'Arch Linux' -write_explaination_table 'Arch Linux' -write_page " " HTML_FTBFS=$(mktemp) HTML_FTBR=$(mktemp) HTML_DEPWAIT=$(mktemp) @@ -104,6 +79,34 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do rm $HTML_BUFFER > /dev/null done done +# +# write out the actual webpage +# +DATE=$(date -u +'%Y-%m-%d') +ARCHBASE=$BASE/archlinux +cd $ARCHBASE +PAGE=archlinux.html +echo "$(date -u) - starting to build $PAGE" +cat > $PAGE <<- EOF + + + + + Repoducible Arch Linux ?! + + + +
+ +
+
+

Reproducible Arch Linux?!

+
+ +EOF +write_page_intro 'Arch Linux' +write_explaination_table 'Arch Linux' +write_page "
repositorysource packagetest resulttest date1st build log2nd build log
" for i in $HTML_UNKNOWN $HTML_FTBFS $HTML_DEPWAIT $HTML_404 $HTML_FTBR $HTML_GOOD ; do cat $i >> $PAGE rm $i > /dev/null -- cgit v1.2.3-70-g09d2
repositorysource packagetest resulttest date1st build log2nd build log