mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
devel/release-checks.sh: added check that 1st NEWS header is tidy
Check that the underlining '===...' for first (header) line in NEWS file is of the same length as the header text and it is all '=':s. -- extra execs removed by db.
This commit is contained in:
parent
c4f96d0931
commit
2bedb03005
1 changed files with 14 additions and 0 deletions
|
@ -104,6 +104,20 @@ else
|
||||||
append_emsg "Version '$py_version' is not '$VERSION' in $PV_FILE"
|
append_emsg "Version '$py_version' is not '$VERSION' in $PV_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -n "Checking that NEWS header is tidy... "
|
||||||
|
if [ "`exec sed 's/./=/g; 1q' NEWS`" = "`exec sed '1d; 2q' NEWS`" ]
|
||||||
|
then
|
||||||
|
echo Yes.
|
||||||
|
else
|
||||||
|
echo No.
|
||||||
|
if [ "`exec sed '1d; s/=//g; 2q' NEWS`" != '' ]
|
||||||
|
then
|
||||||
|
append_emsg "Line 2 in NEWS file is not all '=':s"
|
||||||
|
else
|
||||||
|
append_emsg "Line 2 in NEWS file does not have the same length as line 1"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo -n "Checking that this is Notmuch NEWS... "
|
echo -n "Checking that this is Notmuch NEWS... "
|
||||||
read news_notmuch news_version news_date < NEWS
|
read news_notmuch news_version news_date < NEWS
|
||||||
if [ "$news_notmuch" = "Notmuch" ]
|
if [ "$news_notmuch" = "Notmuch" ]
|
||||||
|
|
Loading…
Reference in a new issue