Unverified Commit a845204b authored by Guillaume Bougard's avatar Guillaume Bougard Committed by GitHub
Browse files

Set build date in table for nightly builds (#9184)

* Set build date in table for nightly builds

* Merge nightly builds in one table moving date column after archive link
parent 53bc94e2
......@@ -36,8 +36,8 @@ layout: default
title: GLPI Nightly Builds
---
Built on $( date -u +'%F %H:%M:%S UTC' )
Version|Archive|Build date|Size
---|---|---|---
HEADER
for file in $*
......@@ -45,12 +45,14 @@ do
NAME="${file#glpi/}"
BRANCH="${NAME%.*.tar.gz}"
SIZE=$( stat -c %s "$file" )
read DATE TIME TZ <<<$(git log -n1 --pretty=%ci -- $file)
[ "$TZ" == "+0000" ] && TZ="UTC"
cat <<DESCRIPTION
## $BRANCH
Archive|Size
---|---
[$NAME]($NAME)|$SIZE
$BRANCH|[$NAME]($NAME)|$DATE $TIME $TZ|$SIZE
DESCRIPTION
done
cat <<FOOTER
<font size="1">Page generated on $( date -u +'%F %H:%M:%S UTC' )</font>
FOOTER
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment