diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-01-05 08:45:47 +0100 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-10-11 16:27:40 +0200 |
| commit | d2ad0f187795a745b78624b3d99ea85e88a2e2a0 (patch) | |
| tree | 8d673ee58b33f7c3fe0e2797c77e3456ec9f064c | |
| parent | 7c5928805b1dd18a7e73592530cecbdd370073bf (diff) | |
| download | kde-d2ad0f187795a745b78624b3d99ea85e88a2e2a0.tar.gz kde-d2ad0f187795a745b78624b3d99ea85e88a2e2a0.tar.bz2 kde-d2ad0f187795a745b78624b3d99ea85e88a2e2a0.zip | |
Documentation: Add new gear-bump.sh script
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
| -rwxr-xr-x | Documentation/maintainers/new/gear-bump.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Documentation/maintainers/new/gear-bump.sh b/Documentation/maintainers/new/gear-bump.sh new file mode 100755 index 00000000000..3a2775d23c4 --- /dev/null +++ b/Documentation/maintainers/new/gear-bump.sh @@ -0,0 +1,57 @@ +#!/bin/sh +. "$(dirname "$0")/lib.sh" + +: ${TARGET_REPO:="$(pwd)"} + +help() { + echo "Perform a version bump of KDE Release Service." + echo + echo "Based on the kde-gear-live set, this script performs a full version bump" + echo "of a new unreleased KDE Release Service." + echo + echo "In addition to the new ebuild being created, the following operations are performed:" + echo + echo "* Creation of package.mask entry" + echo "* Eclass modification to mark as unreleased" + echo "If necessary:" + echo "* Creation of versioned set from kde-gear-live" + echo "* Generation of package.* files in Documentation" + echo + echo "Usage: gear-bump.sh <version>" + echo "Example: gear-bump.sh 22.08.2" + exit 0 +} + +if [[ $1 == "--help" ]] ; then + help +fi + +VERSION="${1}" + +if [[ -z "${VERSION}" ]] ; then + echo ERROR: Not enough arguments + echo + help +fi + +major_version=$(echo ${VERSION} | cut -d "." -f 1-2) +kfv="kde-gear-${VERSION}" +kfmv="kde-gear-${major_version}" + +pushd "${TARGET_REPO}" > /dev/null + +if ! [[ -f sets/kde-gear-${major_version} ]]; then + bump_set_from_live kde-gear ${major_version} + create_keywords_files ${kfmv} + + sed -i -e "/SERVICE_RELEASES/s/\"$/ ${major_version}\"/" Documentation/maintainers/regenerate-files + Documentation/maintainers/regenerate-files +fi + +mask_from_set kde-gear-${major_version} ${VERSION} ${kfv} +mark_unreleased gear ${VERSION} + +bump_packages_from_set kde-gear-${major_version} ${major_version}.49.9999 ${VERSION} +commit_packages ${kfmv} "${VERSION} version bump" + +popd > /dev/null |
