Skip to content

Commit

Permalink
Make sure we have all the version numbers in pdfio.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Feb 15, 2025
1 parent 9a5c5ec commit c4c8fa6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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@
Expand Down
10 changes: 10 additions & 0 deletions makesrcdist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions pdfio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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


//
Expand Down

0 comments on commit c4c8fa6

Please sign in to comment.