summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-07-29 13:58:16 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-29 13:58:16 +0200
commit92a2521118768d08be0ed65c1c750aaf4426a800 (patch)
treed00037283597b32b10e8426b84a3382823737abd /bin
parente7a4ddfcf5815a396101fd6a96809929b700e24a (diff)
downloadjenkins.debian.net-92a2521118768d08be0ed65c1c750aaf4426a800.tar.xz
reproducible: refactor
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_repository_comparison.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/reproducible_html_repository_comparison.sh b/bin/reproducible_html_repository_comparison.sh
index 39895b1b..3f595e73 100755
--- a/bin/reproducible_html_repository_comparison.sh
+++ b/bin/reproducible_html_repository_comparison.sh
@@ -15,8 +15,8 @@ ARCH="amd64" # same
VIEW=repositories
PAGE=index_${VIEW}.html
+SOURCES=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
TMPFILE=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
-TMP2FILE=$(mktemp --tmpdir=$TEMPDIR repo-comp-XXXXXXXXX)
MODIFIED_IN_SID=0
MODIFIED_IN_EXP=0
@@ -29,8 +29,8 @@ write_page "deb-src http://reproducible.alioth.debian.org/debian/ ./"
write_page "</pre></p>"
write_page "<p><table><tr><th>package</th><th>git repo</th><th>PTS link</th><th>usertagged bug</th><th>old versions in our repo<br />(needed for reproducing old builds)</th><th>version in our repo</th><th>version in 'testing'</th><th>version in 'unstable'</th><th>version in 'experimental'</th></tr>"
-curl http://reproducible.alioth.debian.org/debian/Sources > $TMPFILE
-SOURCEPKGS=$(grep-dctrl -n -s Package -r -FPackage . $TMPFILE | sort -u)
+curl http://reproducible.alioth.debian.org/debian/Sources > $SOURCES
+SOURCEPKGS=$(grep-dctrl -n -s Package -r -FPackage . $SOURCES | sort -u)
for PKG in $SOURCEPKGS ; do
echo "Processing $PKG..."
if [ "${PKG:0:3}" = "lib" ] ; then
@@ -38,7 +38,7 @@ for PKG in $SOURCEPKGS ; do
else
PREFIX=${PKG:0:1}
fi
- VERSIONS=$(grep-dctrl -n -s version -S $PKG $TMPFILE|sort -u)
+ VERSIONS=$(grep-dctrl -n -s version -S $PKG $SOURCES|sort -u)
CRUFT=""
BET=""
OBSOLETE_IN_SID=false
@@ -123,13 +123,13 @@ for PKG in $SOURCEPKGS ; do
*)
URL="http://anonscm.debian.org/cgit/reproducible/$PKG.git/?h=pu/reproducible_builds" ;;
esac
- curl $URL > $TMP2FILE
- if [ "$(grep "'error'>No repositories found" $TMP2FILE 2>/dev/null)" ] ; then
+ curl $URL > $TMPFILE
+ if [ "$(grep "'error'>No repositories found" $TMPFILE 2>/dev/null)" ] ; then
write_page "$URL<br /><span class=\"red\">(no git repository found)</span>"
- elif [ "$(grep "'error'>Invalid branch" $TMP2FILE 2>/dev/null)" ] ; then
+ elif [ "$(grep "'error'>Invalid branch" $TMPFILE 2>/dev/null)" ] ; then
URL="http://anonscm.debian.org/cgit/reproducible/$PKG.git/?h=merged/reproducible_builds"
- curl $URL > $TMP2FILE
- if [ "$(grep "'error'>Invalid branch" $TMP2FILE 2>/dev/null)" ] ; then
+ curl $URL > $TMPFILE
+ if [ "$(grep "'error'>Invalid branch" $TMPFILE 2>/dev/null)" ] ; then
if ! $OBSOLETE_IN_SID ; then
write_page "<a href=\"$URL\">$PKG.git</a><br /><span class=\"purple\">non-standard branch</span>"
else
@@ -183,7 +183,7 @@ for PKG in $SOURCEPKGS ; do
write_page "</tr>"
done
write_page "</table></p>"
-rm $TMPFILE $TMP2FILE
+rm $SOURCES $TMPFILE
write_page_footer
publish_page
echo "$MODIFIED_IN_SID" > /srv/reproducible-results/modified_in_sid.txt