aboutsummaryrefslogtreecommitdiff
path: root/check_version
blob: 6d7f25cd12bddfb48882d05944b1565a78315382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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

VER="$( sed -n '/^\.\. |version| replace:: /s,.* ,,p' cuerecover.rst )"
if [ "$VER" != "$1" ]; then
	echo
	echo "*** You forgot to update the version in cuerecover.rst"
	echo
	X=1
fi

exit $X