Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dynare
website
Commits
7feb23ba
Verified
Commit
7feb23ba
authored
Sep 13, 2019
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dynamically create `dynare_stable_version` variable in setup script
parent
46f19d1b
Pipeline
#1837
passed with stages
in 30 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
.gitignore
.gitignore
+3
-0
_includes/dynare_stable_version.md
_includes/dynare_stable_version.md
+0
-3
setup-download-links.sh
setup-download-links.sh
+1
-0
No files found.
.gitignore
View file @
7feb23ba
...
...
@@ -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
...
...
_includes/dynare_stable_version.md
deleted
100644 → 0
View file @
46f19d1b
{% 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] %}
setup-download-links.sh
View file @
7feb23ba
...
...
@@ -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>"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment