1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#!/bin/bash
### How does this script operate?
#
# Script's expectations:
# - TODO
#
# Script's arguments:
# - Release version to verify
#
# Steps that this script performs:
# - Takes the release version as an argument
# - Inspects ChangeLog
# - Makes sure that the top-most listed release is the one we're verifying for
### Shell configuration and script bootstrap
#
set -e
set -u
. `dirname $0`/../_bootstrap.sh
### Get the release version from arguments
#
RELEASE_VERSION="${1:-}"
if [ "$RELEASE_VERSION" == "" ]; then
_fatalError "Release version argument not provided. Usage: $0 x.y.z"
fi
### Verify release version syntax
#
if ! _isPublicReleaseVersionFormatValid "$RELEASE_VERSION"; then
_fatalError "Invalid public release version syntax: $RELEASE_VERSION" $LINENO
fi
### Check everywhere for last version consistency
#
./dev-tools/libexec/verify-last-version-in-readme.sh "$RELEASE_VERSION"
./dev-tools/libexec/verify-last-version-in-changelog.sh "$RELEASE_VERSION"
### All good
#
true
|