Make sure we have all the version numbers in pdfio.h.

This commit is contained in:
Michael R Sweet 2025-02-15 12:25:09 -05:00
parent 9a5c5ec65d
commit c4c8fa6036
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244
3 changed files with 15 additions and 3 deletions

View File

@ -15,7 +15,7 @@
.SILENT:
# Version number...
# Version numbers...
PDFIO_VERSION = @PDFIO_VERSION@
PDFIO_VERSION_MAJOR = @PDFIO_VERSION_MAJOR@
PDFIO_VERSION_MINOR = @PDFIO_VERSION_MINOR@

View File

@ -22,6 +22,8 @@ if test $# != 1; then
fi
version=$1
version_major=$(echo $1 | awk -F. '{print $1}')
version_minor=$(echo $1 | awk -F. '{print $2}')
# Check that version number has been updated everywhere...
if test $(grep AC_INIT configure.ac | awk '{print $2}') != "[$version],"; then
@ -57,6 +59,14 @@ if test $(grep PDFIO_VERSION pdfio.h | awk -F \" '{print $2}') != "$version"; th
echo "Still need to update PDFIO_VERSION in 'pdfio.h'."
exit 1
fi
if test $(grep PDFIO_VERSION_MAJOR pdfio.h | awk '{print $3}') != "$version_major"; then
echo "Still need to update PDFIO_VERSION_MAJOR in 'pdfio.h'."
exit 1
fi
if test $(grep PDFIO_VERSION_MINOR pdfio.h | awk '{print $3}') != "$version_minor"; then
echo "Still need to update PDFIO_VERSION_MINOR in 'pdfio.h'."
exit 1
fi
# Tag release...
if test $snapshot = 0; then

View File

@ -20,10 +20,12 @@ extern "C" {
//
// Version number...
// Version numbers...
//
# define PDFIO_VERSION "1.4.1"
# define PDFIO_VERSION "1.5.0"
# define PDFIO_VERSION_MAJOR 1
# define PDFIO_VERSION_MINOR 5
//