Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/tesseract/m4/ax_split_version.m4 @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 # =========================================================================== | |
| 2 # https://www.gnu.org/software/autoconf-archive/ax_split_version.html | |
| 3 # =========================================================================== | |
| 4 # | |
| 5 # SYNOPSIS | |
| 6 # | |
| 7 # AX_SPLIT_VERSION | |
| 8 # | |
| 9 # DESCRIPTION | |
| 10 # | |
| 11 # Splits a version number in the format MAJOR.MINOR.POINT into its | |
| 12 # separate components. | |
| 13 # | |
| 14 # Sets the variables. | |
| 15 # | |
| 16 # LICENSE | |
| 17 # | |
| 18 # Copyright (c) 2008 Tom Howard <tomhoward@users.sf.net> | |
| 19 # | |
| 20 # Copying and distribution of this file, with or without modification, are | |
| 21 # permitted in any medium without royalty provided the copyright notice | |
| 22 # and this notice are preserved. This file is offered as-is, without any | |
| 23 # warranty. | |
| 24 | |
| 25 #serial 10 | |
| 26 | |
| 27 AC_DEFUN([AX_SPLIT_VERSION],[ | |
| 28 AC_REQUIRE([AC_PROG_SED]) | |
| 29 AX_MAJOR_VERSION=`echo "$VERSION" | $SED 's/\([[^.]][[^.]]*\).*/\1/'` | |
| 30 AX_MINOR_VERSION=`echo "$VERSION" | $SED 's/[[^.]][[^.]]*.\([[^.]][[^.]]*\).*/\1/'` | |
| 31 AX_POINT_VERSION=`echo "$VERSION" | $SED 's/[[^.]][[^.]]*.[[^.]][[^.]]*.\(.*\)/\1/'` | |
| 32 AC_MSG_CHECKING([Major version]) | |
| 33 AC_MSG_RESULT([$AX_MAJOR_VERSION]) | |
| 34 AC_MSG_CHECKING([Minor version]) | |
| 35 AC_MSG_RESULT([$AX_MINOR_VERSION]) | |
| 36 AC_MSG_CHECKING([Point version]) | |
| 37 AC_MSG_RESULT([$AX_POINT_VERSION]) | |
| 38 ]) |
