We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f3d36a commit fd34a07Copy full SHA for fd34a07
1 file changed
tools/update-simplecpp.sh
@@ -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