diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-11-22 13:12:36 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-11-22 13:12:36 +0000 |
commit | 79038213f7e4f7e2d0fe964739f0697df99ce7f5 (patch) | |
tree | e314c6681c842e4aa6c703733cdb148f2e792bec /bin | |
parent | 55d32876ec76887dbb50c80f7fe3f8749e1dca67 (diff) | |
download | jenkins.debian.net-79038213f7e4f7e2d0fe964739f0697df99ce7f5.tar.xz |
reproducible Arch Linux: provide better links and output of .BUILDINFO files
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build_archlinux_pkg.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh index 05d743fb..bf5d1f6b 100755 --- a/bin/reproducible_build_archlinux_pkg.sh +++ b/bin/reproducible_build_archlinux_pkg.sh @@ -348,14 +348,16 @@ if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz 2>/dev/null|| true)" ] ; the if diff -q $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT ; then echo "$(date -u) - YAY - $SRCPACKAGE/$ARTIFACT build reproducible in our test framework!" mkdir -p $BASE/archlinux/$REPOSITORY/$SRCPACKAGE - tar xJvf $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT .BUILDINFO && mv .BUILDINFO $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b1.BUILDINFO - tar xJvf $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT .BUILDINFO && mv .BUILDINFO $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b2.BUILDINFO + tar xJvf $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT .BUILDINFO && mv .BUILDINFO $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b1.BUILDINFO.txt + tar xJvf $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT .BUILDINFO && mv .BUILDINFO $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b2.BUILDINFO.txt ( echo "<html><body><p>$SRCPACKAGE/$ARTIFACT build reproducible in our test framework:<br />" - (cd $TMPDIR/b1/ ; sha256sum $SRCPACKAGE/$ARTIFACT) + (cd $TMPDIR/b1/$SRCPACKAGE ; sha256sum $ARTIFACT) echo "<br />" - echo "<a href=\"$ARTIFACT-b1.BUILDINFO\">$ARTIFACT-b1.BUILDINFO</a><br />" - echo "<a href=\"$ARTIFACT-b2.BUILDINFO\">$ARTIFACT-b2.BUILDINFO</a><br />" + (sha256sum $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b1.BUILDINFO.txt | cut -d " " -f1) + echo " <a href=\"$ARTIFACT-b1.BUILDINFO.txt\">$ARTIFACT-b1.BUILDINFO.txt</a><br />" + (sha256sum $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b2.BUILDINFO.txt | cut -d " " -f1) + echo " <a href=\"$ARTIFACT-b2.BUILDINFO.txt\">$ARTIFACT-b2.BUILDINFO.txt</a><br />" echo "</p></body>" ) > "$BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html" elif [ -f $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT ] && [ -f $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT ] ; then |