Skip to content

Commit 10fd2e0

Browse files
committed
chore: Add version update script compatible with ci-tools.
1 parent 199878f commit 10fd2e0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: tools/update-versions.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
set -eux -o pipefail
4+
5+
VERSION=$1
6+
7+
GIT_ROOT=$(git rev-parse --show-toplevel)
8+
cd "$GIT_ROOT"
9+
10+
# Strip suffixes (e.g. "-rc.1") from the version for the toxcore version sync.
11+
VERSION="${VERSION%-*}"
12+
13+
IFS="." read -ra version_parts <<<"$VERSION"
14+
15+
other/version-sync "$GIT_ROOT" "${version_parts[0]}" "${version_parts[1]}" "${version_parts[2]}"

0 commit comments

Comments
 (0)