website-doc.sh: write releases in reversed chronological order

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-03-10 18:31:18 +01:00
parent 3a00ddaa84
commit 4d0a7eae42

View File

@ -25,7 +25,7 @@ $SPHINXBUILD -b html -d "$TMPDIR" doc-src "$dest"
# Dynamically build JSON definitions for Jekyll.
#
echo "Building Jekyll data: $VERSIONS_YML"
for version in $(ls "$DESTBASE")
for version in $(ls "$DESTBASE" -1 | sort -nr)
do
echo "- $version"
done > "$VERSIONS_YML"