]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
docs: add library version updates to release process
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 10 Feb 2022 21:50:32 +0000 (14:50 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 10 Feb 2022 21:50:36 +0000 (14:50 -0700)
Add step to update Major, Minor and Release versions in configure.ac to
both release documents.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit d505622e6742f0587dd3093e30c9737ef86798c6)

doc/internal/release-github.txt
doc/internal/release.txt

index 52a60d0c2d59ab4f5c636af03a408d3bbf5cebb6..99e19df79e538ccd46c82d4e7e4c659bb13b8d7b 100644 (file)
@@ -1,6 +1,9 @@
 1.  Update version in configure.ac
     a.  AC_INIT([libcgroup],[0.XX])
     b.  Add an .rcY to the end, e.g. 0.XX.rcY
+    c.  AC_SUBST(LIBRARY_VERSION_MAJOR, 0)
+        AC_SUBST(LIBRARY_VERSION_MINOR, XX)
+        AC_SUBST(LIBRARY_VERSION_RELEASE, rcY)
 2.  Build
     a.  Run ./bootstrap.sh
     b.  Run ./configure --enable-opaque-hierarchy="name=systemd"
index c01abe0bcdf3158c0e0ce5de9f82819032191110..0b075f7bd80bbb116170052551b86f2db2a6f4a3 100644 (file)
@@ -8,23 +8,26 @@ Please follow the following steps (TODO: Automate these steps)
 3. Prepare release candidate (X.YY-rcZ - X.YY = version, Z - prerelease
 umber):
        a. Update AC_INIT(X.YY.rcZ) in configure.ac.
-       b. Run 'autoreconf -i' to generate the configure file again, with the
+       b. Update AC_SUBST(LIBRARY_VERSION_MAJOR, X),
+          AC_SUBST(LIBRARY_VERSION_MINOR, YY),
+          AC_SUBST(LIBRARY_VERSION_RELEASE, rcZ) in configure.ac.
+       c. Run 'autoreconf -i' to generate the configure file again, with the
           new release number.
-       c. Run './configure' to generate Makefile and dist/libcgroup.spec with
+       d. Run './configure' to generate Makefile and dist/libcgroup.spec with
           correct version numbers.
-       d. Run 'make dist' to create tarball. Fix Makefile.am files if
+       e. Run 'make dist' to create tarball. Fix Makefile.am files if
           something goes wrong.
           The tarball should contain everything needed for compilation with
           simple sh, make and (optionally) rpmbuild, among others:
                libcgroup-X.YY.rcZ/configure
                libcgroup-X.YY.rcZ/dist/libcgroup.spec
-       e. Try to build rpms ('rpmbuild -ta libcgroup-X.YY.rcZ.tar.gz'), fix
+       f. Try to build rpms ('rpmbuild -ta libcgroup-X.YY.rcZ.tar.gz'), fix
           errors in dist/libcgroup.spec.in file if something goes wrong.
-       f. Tag the pre-release in git.
-       g. Publish the pre-release libcgroup-X.YY.rcZ.tar.gz and announce it on
+       g. Tag the pre-release in git.
+       h. Publish the pre-release libcgroup-X.YY.rcZ.tar.gz and announce it on
           the libgroup-devel list with a changelog (git shortlog A..B is your
            friend).
-       h. Test the pre-release and go to a) if new one is needed.
+       i. Test the pre-release and go to a) if new one is needed.
        During this period, ABI of newly introduced shared symbols is *not*
        stable and may change, if there is very good reason to break it.