#!/usr/bin/env bashcd"$(dirname"$0")/.."# Use long options (e.g. --header instead of -H) for curl examples in documentation.grep--perl-regexp--recursive--color=auto 'curl (.+ )?-[^- ].*' doc/if[$?== 0 ]thenecho'✖ ERROR: Short options should not be used in documentation!'>&2exit 1fi
# Ensure that the CHANGELOG does not contain duplicate versionsDUPLICATE_CHANGELOG_VERSIONS=$(grep--extended-regexp'^v [0-9.]+' CHANGELOG | sed's| (unreleased)||' | sort | uniq-d)if["${DUPLICATE_CHANGELOG_VERSIONS}"!=""]thenecho'✖ ERROR: Duplicate versions in CHANGELOG:'>&2echo"${DUPLICATE_CHANGELOG_VERSIONS}">&2exit 1fi