Skip to content

Commit

Permalink
Update makesrcdist to validate CHANGES.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Jan 23, 2025
1 parent 9e2f3ab commit dd7ed67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Changes in PDFio
================


v1.4.1 - YYYY-MM-DD
-------------------

Expand Down
9 changes: 9 additions & 0 deletions makesrcdist
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ if test $(grep AC_INIT configure.ac | awk '{print $2}') != "[$version],"; then
exit 1
fi

if test $(head -4 CHANGES.md | tail -1 | awk '{print $1}') != "v$version"; then
echo "Still need to update CHANGES.md version number."
exit 1
fi
if test $(head -4 CHANGES.md | tail -1 | awk '{print $3}') = "YYYY-MM-DD"; then
echo "Still need to update CHANGES.md release date."
exit 1
fi

if test $(grep PDFIO_VERSION= configure | awk -F \" '{print $2}') != "$version"; then
echo "Still need to run 'autoconf -f'."
exit 1
Expand Down

0 comments on commit dd7ed67

Please sign in to comment.