We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f3d36a commit 763cf49Copy full SHA for 763cf49
1 file changed
tools/update-simplecpp.sh
@@ -0,0 +1,17 @@
1
+#!/usr/bin/env bash
2
+
3
+set -e
4
5
+url="https://github.com/danmar/simplecpp"
6
7
+tag="$(git ls-remote --tags --sort=-v:refname "$url" | head -1 | cut -f2)"
8
+[ -z "$tag" ] && exit 1
9
10
+echo "Latest tag is $tag"
11
12
+dest_dir="$(dirname "$(realpath "${BASH_SOURCE[@]}")")/../externals/simplecpp"
13
+files=("simplecpp.cpp" "simplecpp.h")
14
15
+for file in "${files[@]}"; do
16
+ curl -LO --output-dir "$dest_dir" "$url/$tag/$file"
17
+done
0 commit comments