diff --git a/plasma/plasma-update-versions b/plasma/plasma-update-versions index 3b303b2..5309986 100755 --- a/plasma/plasma-update-versions +++ b/plasma/plasma-update-versions @@ -1,39 +1,39 @@ # 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.14.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; - for metainfofile in `find . -name *appdata.xml`; do + for metainfofile in `find . -name *appdata.xml -o *metainfo.xml`; do ${APPSTREAM_UPDATER} ${metainfofile} --version "${VERSION}" --datestring "${RELEASEDATE}" --releases-to-show 4 done git diff; git commit -a -m "Update version number for ${VERSION} GIT_SILENT" || true; git push; cd ..; fi done