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:03:30 +0100
commit3b971b2609835b44d6cf75ebd8c204938cc20dc3 (patch)
tree06bd503c7c6b8fc56179d433573db84cf7076e8b
parent76b6ffd406241e9e06c4737bd30b7adf29e52235 (diff)
downloadOSELAS.Toolchain-3b971b2609835b44d6cf75ebd8c204938cc20dc3.tar.gz
make_release: ensure that the debian release version ist correct
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