Improve release note generation script

The script can now be run from outside of the directory it is contained
in.
This commit is contained in:
Markus Mäkelä 2019-01-03 13:34:10 +02:00
parent 1b0b32cbe8
commit c8d4052aec
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1,5 +1,7 @@
#!/bin/bash
cd $(dirname $(realpath $0))
major="`cd ../../ && cmake -P ./VERSION.cmake -L|grep 'MAXSCALE_VERSION_MAJOR'|sed 's/.*=//'`"
minor="`cd ../../ && cmake -P ./VERSION.cmake -L|grep 'MAXSCALE_VERSION_MINOR'|sed 's/.*=//'`"
patch="`cd ../../ && cmake -P ./VERSION.cmake -L|grep 'MAXSCALE_VERSION_PATCH'|sed 's/.*=//'`"