diff --git a/increase_repos_version.sh b/increase_repos_version.sh --- a/increase_repos_version.sh +++ b/increase_repos_version.sh @@ -15,6 +15,15 @@ exit 1 fi +# command from git clone kde:jriddell/appstream-metainfo-release-update +APPSTREAM_UPDATER="/home/jr/src/appstream-metainfo-release-update/appstream-metainfo-release-update/appstream-metainfo-release-update" +RELEASEDATE="Tuesday, 9 July 2019" +if [ ! -e $APPSTREAM_UPDATER ]; then + echo "$APPSTREAM_UPDATER does not exist, please fix APPSTREAM_UPDATER variable" + exit 1 +fi +echo "** Have you updated RELEASEDATE? $RELEASEDATE" + cat $here/modules.git | while read repo branch; do echo $repo . $here/version @@ -29,6 +38,13 @@ $cmd perl -pi -e '$_ =~ s/\Q$1/'$version_major'/ if (/^set ?\(KDE_APPLICATIONS_VERSION_MAJOR "([0-9]*)"/);' CMakeLists.txt $cmd perl -pi -e '$_ =~ s/\Q$1/'$version_minor'/ if (/^set ?\(KDE_APPLICATIONS_VERSION_MINOR "([0-9]*)"/);' CMakeLists.txt $cmd perl -pi -e '$_ =~ s/\Q$1/'$version_patch'/ if (/^set ?\(KDE_APPLICATIONS_VERSION_MICRO "([0-9]*)"/);' CMakeLists.txt + if [ $version_patch -lt 50 ]; then + for metainfofile in `find . -name \*appdata.xml -o -name \*metainfo.xml`; do + echo "APPSTREAMING $metainfofile" + $cmd ${APPSTREAM_UPDATER} ${metainfofile} --version "${version}" --datestring "${RELEASEDATE}" --releases-to-show 4 + done + fi + echo "APPSTREAMING DONE $version_patch" $cmd git commit -a -m "GIT_SILENT Upgrade KDE Applications version to $version." $cmd git pull --rebase || exit 5 $cmd git push origin $branch || exit 6