]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs/RELEASE: use meson.version for tags
authorMike Yuan <me@yhndnzj.com>
Mon, 13 May 2024 12:05:40 +0000 (20:05 +0800)
committerMike Yuan <me@yhndnzj.com>
Mon, 13 May 2024 13:58:29 +0000 (21:58 +0800)
docs/RELEASE.md

index 75919b4310cab3b9c7befedd0e855c6028fd5457..3667251311459e0f647c1fa907dad041d91d4239 100644 (file)
@@ -13,10 +13,10 @@ SPDX-License-Identifier: LGPL-2.1-or-later
 4. Update hwdb (`ninja -C build update-hwdb`, `ninja -C build update-hwdb-autosuspend`, commit separately).
 5. Update syscall numbers (`ninja -C build update-syscall-tables update-syscall-header`).
 6. [RC1] Update library numbers in `meson.build`
-7. Update version number in `meson.version` (e.g. from `v256~devel` to `v256~rc1` or from `v256~rc3` to `v256`)
+7. Update version number in `meson.version` (e.g. from `v256~devel` to `v256~rc1` or from `v256~rc3` to `v256`). Note that this uses a tilde (\~) instead of a hyphen (-) because tildes sort lower in version comparisons according to the [version format specification](https://uapi-group.org/specifications/specs/version_format_specification/), and we want `v255~rc1` to sort lower than `v255`.
 8. Check dbus docs with `ninja -C build update-dbus-docs`
 9. Update translation strings (`ninja -C build systemd-pot`, `ninja -C build systemd-update-po`) - drop the header comments from `systemd.pot` + re-add SPDX before committing. If the only change in a file is the 'POT-Creation-Date' field, then ignore that file.
-10. Tag the release: `version=vXXX~rcY && git tag -s "${version}" -m "systemd ${version}"`. Note that this uses a tilde (\~) instead of a hyphen (-) because tildes sort lower in version comparisons according to the [version format specification](https://uapi-group.org/specifications/specs/version_format_specification/), and we want `v255~rc1` to sort lower than `v255`.
+10. Tag the release: `version="v$(sed 's/~/-/g' meson.version)" && git tag -s "${version}" -m "systemd ${version}"` (tildes are replaced with hyphens, because git doesn't accept the former).
 11. Do `ninja -C build`
 12. Make sure that the version string and package string match: `build/systemctl --version`
 13. [FINAL] Close the github milestone and open a new one (https://github.com/systemd/systemd/milestones)