blob: afa05df72e3143b57f949d7bac186789fcb22cd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#!/bin/bash
. "$(dirname "$0")/lib.sh"
: ${TARGET_REPO:="$(pwd)"}
help() {
echo "Perform a version bump of KDE Frameworks 5 or 6."
echo
echo "Based on the kde-frameworks-(5-)live sets, this script performs a full version bump"
echo "of a new unreleased KDE Frameworks."
echo
echo "In addition to the new ebuild being created, the following operations are performed:"
echo
echo "* Creation of versioned set"
echo "* Creation of package.mask entry"
echo "* Eclass modification to mark as unreleased"
echo "* Generation of package.* files in Documentation"
echo
echo "Usage: frameworks-bump.sh <version>"
echo "Example: frameworks-bump.sh 5.101.0"
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)
if [[ ${VERSION} == 5.2[4-9]?.? ]]; then
major_version=6
fi
major_minor_version=$(echo ${VERSION} | cut -d "." -f 1-2)
if [[ ${major_version} == 5 ]]; then
kfmv="kde-frameworks-${major_version}-${major_minor_version}"
base_version=5.239.9999
setname="kde-frameworks-${major_version}"
else
kfmv="kde-frameworks-${major_minor_version}"
setname="kde-frameworks"
base_version=9999
fi
pushd "${TARGET_REPO}" > /dev/null
bump_set_from_live ${setname} ${major_minor_version}
mask_from_live_set ${setname} ${VERSION} kde-frameworks-${VERSION}
mark_unreleased frameworks ${VERSION}
create_keywords_files ${kfmv} ${setname}
sed -i -e "/KF${major_version}_RELEASES/s/ *)$/ ${major_minor_version} )/" Documentation/maintainers/regenerate-files
Documentation/maintainers/regenerate-files
bump_packages_from_set ${setname}-live ${base_version} ${VERSION}
commit_packages ${kfmv} "${VERSION} version bump"
popd > /dev/null
|