[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: also create dummy thumbnails
Holger Levsen
holger at moszumanska.debian.org
Mon May 11 17:05:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 53bf4e6a32a4f2cab43a1c687fad14e79a6e61e9
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon May 11 19:05:30 2015 +0200
reproducible: also create dummy thumbnails
---
bin/reproducible_html_graphs.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 1c77922..1843f3e 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -320,6 +320,11 @@ create_png_from_table() {
mkdir -p $DIR
echo "Creating $2 dummy."
convert -size 1600x800 xc:#aaaaaa -depth 8 $2
+ if [ "$3" != "" ] ; then
+ local THUMB="${TABLE[1]}_${3}-thumbnail.png"
+ convert $2 -adaptive-resize 160x80 ${THUMB}
+ mv ${THUMB} $BASE/$DIR
+ fi
mv $2 $BASE/$DIR
[ "$DIR" = "." ] || rmdir $(dirname $2)
fi
@@ -422,7 +427,7 @@ create_pkg_sets_page() {
done
write_page "</ul>"
for i in $(seq 1 ${#META_PKGSET[@]}) ; do
- THUMB=${TABLE[6]}_${META_PKGSET[$i]}-thumbnail.png
+ THUMB="${TABLE[6]}_${META_PKGSET[$i]}-thumbnail.png"
LABEL="Reproducibility status for packages in $SUITE/$ARCH from '${META_PKGSET[$i]}'"
write_page "<a href=\"/$SUITE/$ARCH/index_pkg_sets.html#${META_PKGSET[$i]}\"><img src=\"/userContent/$SUITE/$ARCH/$THUMB\" class=\"metaoverview\" alt=\"$LABEL\"></a>"
done
@@ -434,7 +439,7 @@ create_pkg_sets_page() {
MAINLABEL[6]="Reproducibility status for packages in $SUITE from '${META_PKGSET[$i]}'"
YLABEL[6]="Amount (${META_PKGSET[$i]} packages)"
PNG=${TABLE[6]}_${META_PKGSET[$i]}.png
- THUMB=${TABLE[6]}_${META_PKGSET[$i]}-thumbnail.png
+ THUMB="${TABLE[6]}_${META_PKGSET[$i]}-thumbnail.png"
# redo pngs once a day
if [ ! -f $BASE/$SUITE/$ARCH/$PNG ] || [ ! -z $(find $BASE/$SUITE/$ARCH -maxdepth 1 -mtime +0 -name $PNG) ] ; then
create_png_from_table 6 $SUITE/$ARCH/$PNG ${META_PKGSET[$i]}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list