[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] trbo status page: shorten some appearances of the term "reproducible" into "r-b"

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Jun 26 13:49:29 BST 2021



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
a77f4de9 by Holger Levsen at 2021-06-26T14:49:19+02:00
trbo status page: shorten some appearances of the term "reproducible" into "r-b"

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_system_health.sh


Changes:

=====================================
bin/reproducible_system_health.sh
=====================================
@@ -344,6 +344,10 @@ write2healthfile() {
 	echo "$1" >> $HEALTH_FILE.html
 }
 
+sed_rb(){
+	echo -n "$1" | sed 's#reproducible#r-b#'
+}
+
 conditional_paragraph() {
 	if [ -s $1 ] ; then
 		write2healthfile " <p>"
@@ -370,7 +374,7 @@ conditional_paragraph() {
 					let GROUP_COUNTER+=1
 					local JOB_SUFFIX=$(echo $NAME |rev | cut -d '_' -f1|rev)
 					if [ -z "$AHREF" ] ; then
-						AHREF=" ${JOB_GROUP}_ <a href=\"$URL/\">${JOB_SUFFIX}</a>"
+						AHREF=" $(sed_rb ${JOB_GROUP})_ <a href=\"$URL/\">${JOB_SUFFIX}</a>"
 					else
 						AHREF="$AHREF <a href=\"$URL/\">${JOB_SUFFIX}</a>"
 					fi
@@ -381,15 +385,15 @@ conditional_paragraph() {
 					# else, we are done grouping
 				else
 					# not part of a group
-					AHREF="<a href=\"$URL/\">$NAME</a>"
+					AHREF="<a href=\"$URL/\">$(sed_rb $NAME)</a>"
 				fi
 			else
 				local BADGE=$(echo $LINE | cut -d '|' -f4)
 				local NOTE=$(echo $LINE | cut -d '|' -f5)
 				if [ "$BADGE" = "true" ] ; then
-					local LINK="<img src=\"$URL/badge/icon\">$NAME"
+					local LINK="<img src=\"$URL/badge/icon\">$(sed_rb $NAME)"
 				else
-					local LINK="$NAME"
+					local LINK="$(sed_rb $NAME)"
 				fi
 				if [ "$MODIFIER" = "1" ] ; then
 					local MOREINFO="$NOTE"



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a77f4de93f2c8e94bed7ff0ccde4730aaed456ab

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a77f4de93f2c8e94bed7ff0ccde4730aaed456ab
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20210626/ed640f9f/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list