Skip to content

Commit

Permalink
Also update configure.ac for 2.0.1
Browse files Browse the repository at this point in the history
And update the release instructions so this does not get forgotten
again!
  • Loading branch information
mhvk committed Oct 13, 2023
1 parent 9364712 commit 9915ba3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
25 changes: 13 additions & 12 deletions RELEASE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ places no contraints on who has permissions to submit code changes.
overwriting *intentional* changes between SOFA and ERFA (the README from the
previous version is generally your friend here.)

* Update the ``SOFA_VERSION`` define in ``meson.build`` to reflect the new SOFA
version.
* Update the ``SOFA_VERSION`` define in both `meson.build` and `configure.ac`
to reflect the new SOFA version.

* Update the SOFA version mentioned in `README.rst` to reflect what's now in, as
well as any relevant changes in the "Differences from SOFA" section or any
Expand All @@ -55,26 +55,27 @@ Releasing ERFA
These steps should be done by a maintainer, as they require specific Github
permissions.

* Update the version number in the `project()` version field of `meson.build` to
the version number you are about to release, and also Follow the instructions
in the `Version numbering` "Package version number" section below.
* Update the version number in the ``project()`` version field of `meson.build`
as well as ``AC_INIT`` in `configure.ac` to the version number you are about
to release. Follow the instructions in the `Version numbering`
"Package version number" section below.

* Update the version info of the shared library in the `libtool_version`
variable of `meson.build`. Follow the instructions in `Version numbering`
* Update the version info of the shared library in the ``libtool_version``
variable of `meson.build` and ``ERFA_LIB_VERSION_INFO`` in `configure.ac`.
Follow the instructions in `Version numbering`
"Shared library version info" section below.

* Update the `README.rst` to reference the version you filled in above for
`configure.ac` (it may be ``x.y.z`` if a maintainer followed the processes
described above). Ensure the list of changes is accurate for this new
version.
* Update the `README.rst` to reference the version you filled in above
(it may be ``x.y.z`` if a maintainer followed the processes described above).
Ensure the list of changes is accurate for this new version.

* Commit these changes using ``git commit``, with a commit message like
``Preparing release v0.0.1``.

* Run ``meson setup builddir``: you need `meson` installed. If no errors appear,
this will create a `build.ninja` file in the build directory, as well as a
`config.h`.
To avoid possible trouble, check that in the latter, `PACKAGE_VERSION`
To avoid possible trouble, check that in the latter, ``PACKAGE_VERSION``
is set correctly.

* Run ``meson test -C builddir``, which will build the library and run the tests -
Expand Down
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

AC_PREREQ([2.68])
## Follow the instructions in RELEASE.rst to change package version
AC_INIT([erfa],[2.0.0])
AC_INIT([erfa],[2.0.1])
AC_CONFIG_SRCDIR([src/erfa.h])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
Expand All @@ -17,10 +17,10 @@ ERFA_NUMVER
## A library supports interfaces from current downto current - age
## Revision is the version of the current interface
## Follow the instructions in RELEASE.rst to change the version info
ERFA_LIB_VERSION_INFO(9, 0, 8)
ERFA_LIB_VERSION_INFO(9, 1, 8)

## SOFA version, update if needed in new relases
AC_DEFINE([SOFA_VERSION], ["20210512"], [Define to the version of SOFA])
AC_DEFINE([SOFA_VERSION], ["20231011"], [Define to the version of SOFA])

# Checks for libraries.
AC_SEARCH_LIBS([sin], [m], , AC_MSG_ERROR([cannot find math functions]))
Expand Down

0 comments on commit 9915ba3

Please sign in to comment.