2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-12-01 22:16:27 +00:00
rules_foreign_cc/examples/built_ninja/test_ninja_version.sh

16 lines
337 B
Bash
Raw Normal View History

#!/usr/bin/env bash
if [ $1 == "true" ]; then
NINJA_COMMAND="./built_ninja/ninja/ninja"
else
NINJA_COMMAND="ninja"
fi
echo "Ninja command: $NINJA_COMMAND"
NINJA_VERSION=$(${NINJA_COMMAND} --version)
echo "Version: $NINJA_VERSION"
if [ "x$NINJA_VERSION" != "x1.8.2" ]; then
echo "Wrong ninja version: $NINJA_VERSION"
exit -1
fi