Skip to content

Commit fd34a07

Browse files
committed
fix #13998
1 parent 8f3d36a commit fd34a07

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

tools/update-simplecpp.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
url="https://github.com/danmar/simplecpp"
6+
7+
commit_and_tag=($(git ls-remote --tags --sort=-v:refname "$url" | head -1))
8+
9+
tag="${commit_and_tag[1]}"
10+
[ -z "$tag" ] && exit 1
11+
12+
echo "Latest tag is $tag"
13+
14+
dest_dir="$(dirname "$(realpath "$BASH_SOURCE")")/../externals/simplecpp"
15+
files=("simplecpp.cpp" "simplecpp.h")
16+
17+
for file in "${files[@]}"; do
18+
curl -LO --output-dir "$dest_dir" "$url/$tag/$file"
19+
done

0 commit comments

Comments
 (0)