From fb5a50b77d5009ce383cccd8de4229f31ab28715 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 8 May 2020 20:47:41 -0400 Subject: make sure the version stays in sync --- check_version | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 check_version (limited to 'check_version') diff --git a/check_version b/check_version new file mode 100644 index 0000000..e42a865 --- /dev/null +++ b/check_version @@ -0,0 +1,21 @@ +#!/bin/sh + +X=0 + +VER="$( sed -n '1s,.* v,,p' README )" +if [ "$VER" != "$1" ]; then + echo + echo "*** You forgot to update the version at the top of README" + echo + X=1 +fi + +VER="$( sed -n '/^\.\. |version| replace:: /s,.* ,,p' miragextract.rst )" +if [ "$VER" != "$1" ]; then + echo + echo "*** You forgot to update the version in miragextract.rst" + echo + X=1 +fi + +exit $X -- cgit v1.2.3