Commit 7feb23ba authored by Houtan Bastani's avatar Houtan Bastani

dynamically create `dynare_stable_version` variable in setup script

parent 46f19d1b
Pipeline #1836 passed with stage
in 4 minutes and 2 seconds
......@@ -8,6 +8,9 @@ _includes/snapshot/*
# Releases
_includes/release/*
# Version (file automatically created by `setup-download-links.sh`)
_includes/dynare_stable_version.md
# Logo
assets/images/logo/*.aux
assets/images/logo/*.log
......
{% assign release = site.static_files | where: "release", "windows-exe" | first %}
{% assign dynare_stable_version = release.name | split: '-' %}
{% assign dynare_stable_version = dynare_stable_version[1] %}
......@@ -38,6 +38,7 @@ do
else
ext="$(echo "${split[1]}" | rev | cut -d. -f2,1 | rev)"
version="$(echo "${split[1]}" | cut -d. -f1,2,3)"
echo "{% assign dynare_stable_version = \"$version\" %}" > ../dynare_stable_version.md
fi
{
echo "<a href=\"https://www.dynare.org/$branch/$dir/$filename\">Dynare $version ($ext)</a>"
......
Markdown is supported
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