mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
9acac2c33e
- oxen-logging updated to bump fmt version - version bump oxen-logging to fix fmt version - version bump oxen-mq to solve uniform distribution error - misc errors introduced by above version bumps - clang-format 14 -> 15
20 lines
717 B
Bash
20 lines
717 B
Bash
|
|
CLANG_FORMAT_DESIRED_VERSION=15
|
|
|
|
CLANG_FORMAT=$(command -v clang-format-$CLANG_FORMAT_DESIRED_VERSION 2>/dev/null)
|
|
if [ $? -ne 0 ]; then
|
|
CLANG_FORMAT=$(command -v clang-format-mp-$CLANG_FORMAT_DESIRED_VERSION 2>/dev/null)
|
|
fi
|
|
if [ $? -ne 0 ]; then
|
|
CLANG_FORMAT=$(command -v clang-format 2>/dev/null)
|
|
if [ $? -ne 0 ]; then
|
|
echo "Please install clang-format version $CLANG_FORMAT_DESIRED_VERSION and re-run this script."
|
|
exit 1
|
|
fi
|
|
version=$(clang-format --version)
|
|
if [[ ! $version == *"clang-format version $CLANG_FORMAT_DESIRED_VERSION"* ]]; then
|
|
echo "Please install clang-format version $CLANG_FORMAT_DESIRED_VERSION and re-run this script."
|
|
exit 1
|
|
fi
|
|
fi
|