blob: 1421ae6a4d23caaa86048f49dbe393604ad83001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
[openfoam]
source='cmd'
cmd="""
export GIT_TERMINAL_PROMPT=0
for i in {12..40}; do
git ls-remote \"https://github.com/OpenFOAM/OpenFOAM-$i.git\" &>/dev/null &&
LATEST=$i || break
done &&
git ls-remote --tags \"https://github.com/OpenFOAM/OpenFOAM-${LATEST}.git\" |
grep -Eo 'tags/[0-9]{8}' |
tail -n1 |
sed 's/tags\\///' |
awk \"{print \\\"${LATEST}.\\\" \\$1}\" |
awk '{ print $0; if ($0 !~ /^[0-9]{2}[.][0-9]{8}$/) exit 1 }'
"""
|