From f96f24a848c2916d417f30b72626877ffa23cde5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 16 Oct 2015 23:51:03 +0200 Subject: reproducible arch: make webpage pretty --- bin/reproducible_html_archlinux.sh | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'bin/reproducible_html_archlinux.sh') diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh index b434238f..0df32283 100755 --- a/bin/reproducible_html_archlinux.sh +++ b/bin/reproducible_html_archlinux.sh @@ -1,20 +1,20 @@ #!/bin/bash # Copyright 2014-2015 Holger Levsen -# © 2015 Reiner Herrmann # released under the GPLv=2 DEBUG=false . /srv/jenkins/bin/common-functions.sh common_init "$@" -# common code defining db access +# common code . /srv/jenkins/bin/reproducible_common.sh # -# finally create the webpage +# create the webpage # -cd $BASE/archlinux +ARCHBASE=$BASE/archlinux +cd $ARCHBASE PAGE=archlinux.html echo "$(date -u) - starting to build $PAGE" cat > $PAGE <<- EOF @@ -27,27 +27,28 @@ cat > $PAGE <<- EOF EOF write_page "" -for PKG in $(ls * -d1) ; do - write_page " " - write_page " " +for PKG in $(cd $ARCHBASE/$PKG/ ; ls * -d1) ; do + write_page " " + write_page " " + write_page " " for LOG in build1.log build2.log ; do - if [ -f $PKG/$LOG ] ; then - write_page " " + if [ -f $ARCHBASE/$PKG/$LOG ] ; then + write_page " " else - write_page " " + write_page " " fi done - if [ -z "$(ls *.pkg.tar.xz.html 2>/dev/null)" ] ; then - write_page " " + if [ -z "$(cd $ARCHBASE/$PKG/ ; ls *.pkg.tar.xz.html 2>/dev/null)" ] ; then + write_page " " else - write_page " " + write_page " " fi + write_page " " done - write_page "
source packagetest date1st build log2nd build logdiffoscope output for binary packages
$PKG$(ls $PKG -dl|cut -d " " -f6-8)
$PKG$(ls $ARCHBASE/$PKG -dl|cut -d " " -f6-8)$LOG$LOG  failed to build from sourcefailed to build from source" - for ARTIFACT in *.pkg.tar.xz.html ; do - write_page " ${ARTIFACT:0:-5}
" + write_page "
" + for ARTIFACT in $(cd $ARCHBASE/$PKG/ ; ls *.pkg.tar.xz.html) ; do + write_page " ${ARTIFACT:0:-5}
" done - write_page "
" write_page_footer Archlinux echo "$(date -u) - enjoy $REPRODUCIBLE_URL/archlinux/$PAGE" -- cgit v1.2.3-70-g09d2