From c8d4052aecb4f745182e7890c2f65f479f68da83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 3 Jan 2019 13:34:10 +0200 Subject: [PATCH] Improve release note generation script The script can now be run from outside of the directory it is contained in. --- Documentation/Release-Notes/generate_release_notes.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/Release-Notes/generate_release_notes.sh b/Documentation/Release-Notes/generate_release_notes.sh index 905e90476..a2b14160b 100755 --- a/Documentation/Release-Notes/generate_release_notes.sh +++ b/Documentation/Release-Notes/generate_release_notes.sh @@ -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/.*=//'`"