summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-12-08 11:02:50 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-12-08 11:05:54 +0100
commitf98eb43efe8ffc11758c2339f48765cc2eab0a27 (patch)
treeb8e88b64abfb2b5154c7c705a7191065a4733ae2
parent678180a3ed61d2dcc9ca345ed5d03ed5a75b4463 (diff)
downloadOSELAS.Toolchain-f98eb43efe8ffc11758c2339f48765cc2eab0a27.tar.gz
make_release: ensure that the debian release version ist correct
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> (cherry picked from commit 3b971b2609835b44d6cf75ebd8c204938cc20dc3) Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-xscripts/make_release.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/make_release.sh b/scripts/make_release.sh
index 7c1013a..181d6fe 100755
--- a/scripts/make_release.sh
+++ b/scripts/make_release.sh
@@ -74,6 +74,12 @@ if grep -q UNRELEASED debian/changelog; then
exit 1
fi
+debian_release="$(sed -n '1s/.*(\(.*\)-.*).*/\1/p' debian/changelog)"
+if [ "${release#${v}}" != "${debian_release}" ]; then
+ echo "release version from the debian/changelog (${debian_release}) does not match '${release#${v}}'" >&2
+ exit 1
+fi
+
if [ "${1}" == "--test" ]; then
echo "test mode: all checks ok -- stopping"
exit