docs_version_pragma_check.sh: Don't treat missing compiler version as an error if it's the current dev version

This commit is contained in:
Kamil Śliwak 2021-01-14 14:39:41 +01:00
parent 203ebf89bb
commit d8d5b3ab20

View File

@ -32,6 +32,8 @@ SOLIDITY_BUILD_DIR=${SOLIDITY_BUILD_DIR:-${REPO_ROOT}/build}
source "${REPO_ROOT}/scripts/common.sh"
source "${REPO_ROOT}/scripts/common_cmdline.sh"
developmentVersion=$("$REPO_ROOT/scripts/get_version.sh")
function versionGreater()
{
v1=$1
@ -104,7 +106,7 @@ function findMinimalVersion()
fi
version=""
for ver in "${allVersions[@]}"
for ver in "${allVersions[@]}" "$developmentVersion"
do
if versionGreater "$ver" "$pragmaVersion"
then
@ -165,6 +167,11 @@ SOLTMPDIR=$(mktemp -d)
then
continue
fi
if [[ "$version" == "$developmentVersion" ]]
then
printWarning "Skipping unreleased development version $developmentVersion"
continue
fi
opts="$opts -v $version"