#!/bin/bash # Copyright 2014-2015 Holger Levsen # released under the GPLv=2 DEBUG=false . /srv/jenkins/bin/common-functions.sh common_init "$@" # common code . /srv/jenkins/bin/reproducible_common.sh # # create the webpage # ARCHBASE=$BASE/archlinux cd $ARCHBASE PAGE=archlinux.html echo "$(date -u) - starting to build $PAGE" cat > $PAGE <<- EOF Repoducible Archlinux ?

This is work in progress and brand new…

EOF write_page "" for PKG in $(find $ARCHBASE/* -maxdepth 1 -type d -exec basename {} \;) ; do write_page " " write_page " " write_page " " for LOG in build1.log build2.log ; do if [ -f $ARCHBASE/$PKG/$LOG ] ; then write_page " " else write_page " " fi done if [ -z "$(cd $ARCHBASE/$PKG/ ; ls *.pkg.tar.xz.html 2>/dev/null)" ] ; then if [ ! -z "$(grep 'ERROR: Could not resolve all dependencies' $ARCHBASE/$PKG/build1.log)" ] ; then write_page " " else write_page " " fi else write_page " " fi write_page " " done write_page "
source packagetest date1st build log2nd build logdiffoscope output for binary packages
$PKG$(ls $ARCHBASE/$PKG -dl|cut -d " " -f6-8)$LOG could not resolve dependenciesfailed to build from source" 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"