summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-11-13 13:36:52 +0100
committerHolger Levsen <holger@layer-acht.org>2015-11-13 13:36:52 +0100
commitf8a549cd5d9557677915050f72f316b08072eab4 (patch)
tree112e03e56deec9e37cee7bb3d337d205d122b11b /bin
parent77fdbc0019e146c9ddbc64d127f5bdb59e4d0177 (diff)
downloadjenkins.debian.net-f8a549cd5d9557677915050f72f316b08072eab4.tar.xz
reproducible: correctly show future date
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index dd719ed8..712f45fd 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -384,7 +384,8 @@ write_explaination_table() {
fi
if [ "$1" = "debian" ] ; then
write_page "<tr><td>CPU type</td><td>one of: $(cat /srv/reproducible-results/node-information/* | grep CPU_MODEL | cut -d '=' -f2- | sort -u | tr '\n' '\0' | xargs -0 -n1 echo '<br />&nbsp;&nbsp;')</td><td>on armhf: sometimes varied (depending on the build job)<br />on amd64: same for both builds (currently, work in progress)</td></tr>"
- write_page "<tr><td>year, month, date</td><td>today ($DATE) or on amd64 also: $(date --date='${DATE}+398 days' +'%Y-%m-%d')</td><td><br />&nbsp;&nbsp;on amd64: varied (398 days difference)<br />&nbsp;&nbsp;on armhf: same for both builds (currently, work in progress)</td></tr>"
+ FUTURE=$(date --date="${DATE}+398 days" +'%Y-%m-%d')
+ write_page "<tr><td>year, month, date</td><td>today ($DATE) or on amd64 also: $FUTURE</td><td>on amd64: varied (398 days difference)<br />&nbsp;&nbsp;on armhf: same for both builds (currently, work in progress)</td></tr>"
else
write_page "<tr><td>CPU type</td><td>$(cat /proc/cpuinfo|grep 'model name'|head -1|cut -d ":" -f2-)</td><td>same for both builds</td></tr>"
write_page "<tr><td>year, month, date</td><td>today ($DATE)</td><td>same for both builds (currently, work in progress)</td></tr>"