From 66981f3e733a47861121e0e65b1d29d79c29caf1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 7 Apr 2016 09:22:37 +0200 Subject: reproducible debian: properly seperate hosts with commata in variation table --- bin/reproducible_common.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 086b7685..8719ab42 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -368,21 +368,18 @@ write_explaination_table() { write_page "" if [ "$1" = "debian" ] ; then write_page "" write_page "" -- cgit v1.2.3-70-g09d2
variationfirst buildsecond build
hostnameone of:" - local FIRST="" for a in ${ARCHS} ; do + local COMMA="" local ARCH_NODES="" write_page "
  " for i in $(echo $BUILD_NODES | sed -s 's# #\n#g' | sort -u) ; do if [ "$(echo $i | grep $a)" ] ; then - ARCH_NODES="${ARCH_NODES}$(echo $i | cut -d '.' -f1 | sed -s 's# ##g')" - if [ -z $FIRST ] ; then - FIRST=", " - else - ARCH_NODES="${ARCH_NODES}$FIRST" + echo -n "$COMMA ${ARCH_NODES}$(echo $i | cut -d '.' -f1 | sed -s 's# ##g')" >> $PAGE + if [ -z $COMMA ] ; then + COMMA="," fi fi done - write_page "${ARCH_NODES}" done write_page "
i-capture-the-hostname
domainname$(hostname -d)i-capture-the-domainname