diff --git a/plasma/plasma-update-versions b/plasma/plasma-update-versions index 9b879de..fd0b186 100755 --- a/plasma/plasma-update-versions +++ b/plasma/plasma-update-versions @@ -1,42 +1,47 @@ # Quick script to update version numbers in Plasma 5 modules # does a clone, replaces PROJECT_VERSION in CMakeLists.txt and pushes # Also updates Appstream metadata files with new version and date # Author Jonathan Riddell 2014,2019, this file is in the public domain and has no copyright restrictions set -xe pwd ls . ./VERSIONS.inc # echo for updating version in master after branch override versions here #VERSION=5.16.80 WORKSPACE=`cat git-repositories-for-release` echo "updating versions for $WORKSPACE" rm -rf tmp-version-update mkdir tmp-version-update cd tmp-version-update for project in $WORKSPACE; do projectrepo=$project project=`basename $project` if [ $project != "breeze-grub" ]; then echo ${project}; git clone --depth 1 --branch ${BRANCH} kde:${projectrepo} ${project}; cd ${project}; pwd; sed -i "s,PROJECT_VERSION \".*\",PROJECT_VERSION \"${VERSION}\"," CMakeLists.txt; # update appstream files release version unless we are doing a beta if [ ! $ORIGIN == 'trunk' ]; then for metainfofile in `find . -name \*appdata.xml -o -name \*metainfo.xml`; do ${APPSTREAM_UPDATER} ${metainfofile} --version "${VERSION}" --datestring "${RELEASEDATE}" --releases-to-show 4 done fi git diff; git commit -a -m "Update version number for ${VERSION} GIT_SILENT" || true; git push; cd ..; + git clone --depth 1 --branch master kde:${projectrepo} ${project}; + cd ${project}; + git cherry-pick origin/${BRANCH}; + git push; + cd ..; fi done