Revision 35576615 autotools/check-version
b/autotools/check-version | ||
---|---|---|
24 | 24 |
shopt -s extglob |
25 | 25 |
|
26 | 26 |
readonly version=$1 |
27 |
readonly newsfile=$2 |
|
27 | 28 |
readonly numpat='+([0-9])' |
28 | 29 |
|
29 | 30 |
case "$version" in |
... | ... | |
41 | 42 |
|
42 | 43 |
readonly newsver="Version ${version/~/}" |
43 | 44 |
|
44 |
if ! grep -q -x "$newsver" NEWS
|
|
45 |
if ! grep -q -x "$newsver" $newsfile
|
|
45 | 46 |
then |
46 | 47 |
echo "Unable to find heading '$newsver' in NEWS" >&2 |
47 | 48 |
exit 1 |
Also available in: Unified diff