Fix release note generation script
The CMake command that reads the VERSION.cmake file needs to be executed in the source root.
This commit is contained in:
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
major=`cmake -P ../../VERSION.cmake -L|grep 'MAXSCALE_VERSION_MAJOR'|sed 's/.*=//'`
|
major="`cd ../../ && cmake -P ./VERSION.cmake -L|grep 'MAXSCALE_VERSION_MAJOR'|sed 's/.*=//'`"
|
||||||
minor=`cmake -P ../../VERSION.cmake -L|grep 'MAXSCALE_VERSION_MINOR'|sed 's/.*=//'`
|
minor="`cd ../../ && cmake -P ./VERSION.cmake -L|grep 'MAXSCALE_VERSION_MINOR'|sed 's/.*=//'`"
|
||||||
patch=`cmake -P ../../VERSION.cmake -L|grep 'MAXSCALE_VERSION_PATCH'|sed 's/.*=//'`
|
patch="`cd ../../ && cmake -P ./VERSION.cmake -L|grep 'MAXSCALE_VERSION_PATCH'|sed 's/.*=//'`"
|
||||||
maturity=`cmake -P ../../VERSION.cmake -L|grep 'MAXSCALE_MATURITY'|sed 's/.*=//'`
|
maturity="`cd ../../ && cmake -P ./VERSION.cmake -L|grep 'MAXSCALE_MATURITY'|sed 's/.*=//'`"
|
||||||
|
|
||||||
VERSION=${major}.${minor}.${patch}
|
VERSION="${major}.${minor}.${patch}"
|
||||||
|
|
||||||
cat <<EOF > MaxScale-$VERSION-Release-Notes.md
|
cat <<EOF > MaxScale-$VERSION-Release-Notes.md
|
||||||
# MariaDB MaxScale ${VERSION} Release Notes
|
# MariaDB MaxScale ${VERSION} Release Notes
|
||||||
|
Reference in New Issue
Block a user