From c4c8fa6036f30544f9c2153723da33b9d9d9c79c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 15 Feb 2025 12:25:09 -0500 Subject: [PATCH] Make sure we have all the version numbers in pdfio.h. --- Makefile.in | 2 +- makesrcdist | 10 ++++++++++ pdfio.h | 6 ++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index ce5eb3f..f2759ed 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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@ diff --git a/makesrcdist b/makesrcdist index f01b8d1..73789db 100755 --- a/makesrcdist +++ b/makesrcdist @@ -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 diff --git a/pdfio.h b/pdfio.h index 7cb7287..9775d0e 100644 --- a/pdfio.h +++ b/pdfio.h @@ -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 //