Merge commit '3105cc20ef3173b87fdc1688962ed6318a1fd039'
This commit is contained in:
15
external/toxcore/c-toxcore/tools/update-versions.sh
vendored
Executable file
15
external/toxcore/c-toxcore/tools/update-versions.sh
vendored
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux -o pipefail
|
||||
|
||||
VERSION=$1
|
||||
|
||||
GIT_ROOT=$(git rev-parse --show-toplevel)
|
||||
cd "$GIT_ROOT"
|
||||
|
||||
# Strip suffixes (e.g. "-rc.1") from the version for the toxcore version sync.
|
||||
VERSION="${VERSION%-*}"
|
||||
|
||||
IFS="." read -ra version_parts <<<"$VERSION"
|
||||
|
||||
other/version-sync "$GIT_ROOT" "${version_parts[0]}" "${version_parts[1]}" "${version_parts[2]}"
|
Reference in New Issue
Block a user