|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +if [ "$1" == "" ] |
| 4 | +then |
| 5 | + echo "usage: $0 major.minor.patch [maturity]" |
| 6 | + exit 1 |
| 7 | +fi |
| 8 | + |
| 9 | +VERSION=$1 |
| 10 | + |
| 11 | +patch=${VERSION##*.} |
| 12 | +major_minor=${VERSION%.*} |
| 13 | +major=${major_minor%%.*} |
| 14 | +minor=${major_minor##*.} |
| 15 | + |
| 16 | +if [ "$2" == "" ] |
| 17 | +then |
| 18 | + echo "No maturity specified, assuming GA." |
| 19 | + maturity="GA" |
| 20 | +else |
| 21 | + maturity=$2 |
| 22 | +fi |
| 23 | + |
| 24 | +if [ ! -d "$major_minor" ] |
| 25 | +then |
| 26 | + echo "error: $major_minor does not exist or is not a directory." |
| 27 | + exit 1 |
| 28 | +fi |
| 29 | + |
| 30 | +# Script location |
| 31 | +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 32 | + |
| 33 | +output=$major.$minor/$VERSION.md |
| 34 | + |
| 35 | +echo Creating/overwriting $output. |
| 36 | +echo |
| 37 | + |
| 38 | +# For version 6, this is just the major version. For other versions, it |
| 39 | +# is $major.$minor. Needs to be updated whenever a new major release is |
| 40 | +# out or if the versioning scheme for MaxScale changes. |
| 41 | +upgrade_version="$major.$minor" |
| 42 | + |
| 43 | +cat <<EOF > $output |
| 44 | +# MariaDB MaxScale ${VERSION} Release Notes |
| 45 | +
|
| 46 | +Release ${VERSION} is a ${maturity} release. |
| 47 | +
|
| 48 | +This document describes the changes in release ${VERSION}, when compared to the |
| 49 | +previous release in the same series. |
| 50 | +
|
| 51 | +If you are upgrading from an older major version of MaxScale, please read the |
| 52 | +[upgrading document](https://app.gitbook.com/s/0pSbu5DcMSW4KwAkUcmX/maxscale-management/deployment/upgrading-maxscale) |
| 53 | +for this MaxScale version. |
| 54 | +
|
| 55 | +For any problems you encounter, please consider submitting a bug |
| 56 | +report on [our Jira](https://jira.mariadb.org/projects/MXS). |
| 57 | +
|
| 58 | +`${SCRIPT_DIR}/list_fixed.sh ${VERSION}` |
| 59 | +
|
| 60 | +## Known Issues and Limitations |
| 61 | +
|
| 62 | +There are some limitations and known issues within this version of MaxScale. |
| 63 | +For more information, please refer to the |
| 64 | +[Limitations](https://app.gitbook.com/s/0pSbu5DcMSW4KwAkUcmX/maxscale-management/mariadb-maxscale-limitations-guide) |
| 65 | +document. |
| 66 | +
|
| 67 | +## Packaging |
| 68 | +
|
| 69 | +RPM and Debian packages are provided for the supported Linux distributions. |
| 70 | +
|
| 71 | +Packages can be downloaded [here](https://mariadb.com/downloads). |
| 72 | +
|
| 73 | +## Source Code |
| 74 | +
|
| 75 | +The source code of MaxScale is tagged at GitHub with a tag, which is identical |
| 76 | +with the version of MaxScale. For instance, the tag of version X.Y.Z of MaxScale |
| 77 | +is \`maxscale-X.Y.Z\`. Further, the default branch is always the latest GA version |
| 78 | +of MaxScale. |
| 79 | +
|
| 80 | +The source code is available [here](https://github.com/mariadb-corporation/MaxScale). |
| 81 | +EOF |
| 82 | + |
| 83 | +echo Manually update the following files: |
| 84 | +echo - $major.$minor/$major.$minor-changelog.md |
| 85 | +echo - ./all-releases.md |
| 86 | +echo - ../SUMMARY.md. |
0 commit comments