aboutsummaryrefslogtreecommitdiff
path: root/check_version
blob: e42a8652d7c06f1788605bcf562a3629aafad68c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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