fractal/scripts/new-release.sh
Daniel García Moreno 6170d0e0d5 New release 3.29.92
New features:

 * Use markup for room details
 * Direct chat and invite to user id
 * Redesign file messages
 * Improve notification title format
 * Room Topic: Remove the button, use only labels
 * MessageMenu: Copy selected text action to menu
 * Native file chooser for attachments

Fixes:
 * Don't override m.direct on direct room creation

New and improved translations and a lot of code fixes
2018-08-30 09:03:39 +02:00

35 lines
803 B
Bash
Executable file

#!/bin/bash
current=$(cat meson.build | grep -Eo "version: '(.*)'" | grep -Eo "[0-9]+\.[0-9]+.[0-9]+")
mayor=$(echo $current | cut -d"." -f1)
minor=$(echo $current | cut -d"." -f2)
rev=$(echo $current | cut -d"." -f3)
case $1 in
"mayor")
next=$(echo $(($mayor + 1)).0.0)
;;
"minor")
next=$(echo $mayor.$(($minor + 1)).0)
;;
"version")
next=$2
;;
*)
next=$(echo $mayor.$minor.$(($rev + 1)))
;;
esac
sed -i "s/$current/$next/" meson.build
sed -i "s/$current/$next/" fractal-gtk/Cargo.toml
sed -i "s/$current/$next/" fractal-matrix-api/Cargo.toml
sed -i "s/version=\"$current\".*/version=\"$next\" date=\"$(date +%Y-%m-%d)\"\/>/" fractal-gtk/res/org.gnome.Fractal.appdata.xml.in.in
cargo check
git commit -av
git tag -s $next
ninja -C _build release
#git push --tags