summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_repository_comparison.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-06-12 22:43:07 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-16 16:28:34 +0200
commitfef02237f9f7aef649db16ba4162355f9a4deb2f (patch)
treef6d98b71946ee2544e15b7dfe6202268ffcd6a80 /bin/reproducible_html_repository_comparison.sh
parentef7fe352e2bb940ac2495e1f303d5ca7c8385b38 (diff)
downloadjenkins.debian.net-fef02237f9f7aef649db16ba4162355f9a4deb2f.tar.xz
reproducible Debian: WIP for s#testing#stretch#g - see TODO4stretch_rename.txt for status
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_html_repository_comparison.sh')
-rwxr-xr-xbin/reproducible_html_repository_comparison.sh34
1 files changed, 17 insertions, 17 deletions
diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh
index 1ecc71e8..0c3e6b27 100755
--- a/bin/reproducible_html_repository_comparison.sh
+++ b/bin/reproducible_html_repository_comparison.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2015-2016 Holger Levsen <holger@layer-acht.org>
+# Copyright 2015-2017 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
DEBUG=false
@@ -58,7 +58,7 @@ for PKG in $SOURCEPKGS ; do
CRUFT=""
BET=""
OBSOLETE_IN_SID=false
- OBSOLETE_IN_TESTING=false
+ OBSOLETE_IN_STRETCH=false
OBSOLETE_IN_EXP=false
#
# gather versions of a package
@@ -77,23 +77,23 @@ for PKG in $SOURCEPKGS ; do
CRUFT="$CRUFT ${VERSION}"
fi
done
- TESTING=$(rmadison -s testing $PKG | egrep -v '^(debian|new):' | cut -d "|" -f2|xargs echo)
+ STRETCH=$(rmadison -s stretch $PKG | egrep -v '^(debian|new):' | cut -d "|" -f2|xargs echo)
EXPERIMENTAL=$(rmadison -s experimental $PKG | egrep -v '^(debian|new):' | cut -d "|" -f2|xargs echo)
#
# format output
#
CSID=""
- CTEST=""
+ CSTRETCH=""
CEXP=""
- if [ ! -z "$TESTING" ] ; then
- for i in $TESTING ; do
+ if [ ! -z "$STRETCH" ] ; then
+ for i in $STRETCH ; do
if dpkg --compare-versions "$i" gt "$BET" ; then
- CTEST="$CTEST<span class=\"green\">$i</span><br />"
- OBSOLETE_IN_TESTING=true
+ CSTRETCH="$CSTRETCH<span class=\"green\">$i</span><br />"
+ OBSOLETE_IN_STRETCH=true
OBSOLETE_IN_SID=true
OBSOLETE_IN_EXP=true
else
- CTEST="$CTEST$i<br />"
+ CSTRETCH="$CSTRETCH$i<br />"
fi
done
fi
@@ -179,8 +179,8 @@ for PKG in $SOURCEPKGS ; do
else
write_row "<a href=\"$URL\">$GIT</a>"
MERGEINFO=""
- if $OBSOLETE_IN_TESTING ; then
- MERGEINFO=" and available in testing and unstable"
+ if $OBSOLETE_IN_STRETCH ; then
+ MERGEINFO=" and available in stretch and unstable"
elif $OBSOLETE_IN_SID ; then
MERGEINFO=" and available in unstable"
elif $OBSOLETE_IN_EXP ; then
@@ -191,14 +191,14 @@ for PKG in $SOURCEPKGS ; do
else
write_row "<a href=\"$URL\">$GIT</a>"
if [ "$PKG" != "strip-nondeterminism" ] && [ "$PKG" != "diffoscope" ] && [ "$PKG" != "debbindiff" ] && [ "$PKG" != "disorderfs" ] ; then
- if $OBSOLETE_IN_TESTING && $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then
+ if $OBSOLETE_IN_STRETCH && $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then
write_row "<br />(unused?"
write_row "<br /><span class=\"purple\">Then the branch should probably renamed.</span>)"
elif $OBSOLETE_IN_SID && $OBSOLETE_IN_EXP ; then
- write_row "<br />(only used in testing, fixed in sid,"
+ write_row "<br />(only used in stretch, fixed in sid,"
write_row "<br /><span class=\"purple\">branch probably either should be renamed to <em>merged/reproducible_builds</em> or a new upload to our repo is needed?</span>)"
elif $OBSOLETE_IN_EXP ; then
- write_row "<br />(only used in testing and unstable, fixed in experimental)"
+ write_row "<br />(only used in stretch and unstable, fixed in experimental)"
fi
elif [ "$PKG" = "disorderfs" ] ; then
write_row "<br />(only used to modify the build environment in the 2nd build)"
@@ -221,7 +221,7 @@ for PKG in $SOURCEPKGS ; do
write_row " <td><a href=\"$URL\">bugs</a></td>"
write_row " <td>$CRUFT</td>"
write_row " <td>$BET $CBINARIES</td>"
- write_row " <td>$CTEST</td>"
+ write_row " <td>$CSTRETCH</td>"
write_row " <td>$CSID</td>"
write_row " <td>$CEXP</td>"
write_row "</tr>"
@@ -229,14 +229,14 @@ for PKG in $SOURCEPKGS ; do
echo
done
if [ -s $TABLE_TODO ] ; then
- write_page "<p><table><tr><th class=\"center\">package</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug(s)</th><th class=\"center\">old versions in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'testing'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>"
+ write_page "<p><table><tr><th class=\"center\">package</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug(s)</th><th class=\"center\">old versions in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'stretch'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>"
cat $TABLE_TODO >> $PAGE
write_page "</table></p>"
else
write_page "<p>Congratulations! There are no modified packages in our repository compared to unstable. (Yes, that means our repository is obsolete now.)"
fi
if [ -s $TABLE_DONE ] ; then
- write_page "<p><table><tr><th class=\"center\">obsoleted package,<br />version in sid higher than in our repo</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug(s)</th><th class=\"center\">old version(s) in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'testing'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>"
+ write_page "<p><table><tr><th class=\"center\">obsoleted package,<br />version in sid higher than in our repo</th><th class=\"center\">git repo</th><th class=\"center\">PTS link</th><th class=\"center\">usertagged bug(s)</th><th class=\"center\">old version(s) in our repo<br />(needed for reproducing old builds)</th><th class=\"center\">version in our repo<br />(available binary packages per architecture)</th><th class=\"center\">version in 'stretch'</th><th class=\"center\">version in 'unstable'</th><th class=\"center\">version in 'experimental'</th></tr>"
cat $TABLE_DONE >> $PAGE
write_page "</table></p>"
fi