aboutsummaryrefslogtreecommitdiff
path: root/check_version
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-05-08 20:47:41 -0400
committerB. Watson <yalhcru@gmail.com>2020-05-08 20:47:41 -0400
commitfb5a50b77d5009ce383cccd8de4229f31ab28715 (patch)
tree9ad2e80f7e98d9e884e5cdf178e9d0096b00c1c0 /check_version
parent597d4023e5ffa60e16d82062b743e35081b39003 (diff)
downloadmiragextract-fb5a50b77d5009ce383cccd8de4229f31ab28715.tar.gz
make sure the version stays in sync
Diffstat (limited to 'check_version')
-rw-r--r--check_version21
1 files changed, 21 insertions, 0 deletions
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