aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-31 20:56:17 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-31 20:56:17 +0200
commitc6d4117df408144df003167a911ff533db0b115b (patch)
tree77b56cc82e3f8b247ce52eeef5eeb5012a70d34d
parentd094efe4b10c22518226b99edce7a1f761934945 (diff)
downloadqtmips-c6d4117df408144df003167a911ff533db0b115b.tar.gz
qtmips-c6d4117df408144df003167a911ff533db0b115b.tar.bz2
qtmips-c6d4117df408144df003167a911ff533db0b115b.zip
Update version string in ApplicationVersion property.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rwxr-xr-xprepare-release4
-rw-r--r--qtmips_gui/main.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/prepare-release b/prepare-release
index a937523..b9b7eff 100755
--- a/prepare-release
+++ b/prepare-release
@@ -20,6 +20,10 @@ sed --in-place \
-e 's#^\([\t ]*\)versionText = "Version [^"]*\\n";.*$#\1versionText = "Version '"$V_TXT"'\\n";#' \
qtmips_gui/aboutdialog.cpp
+sed --in-place \
+ -e 's#^\([\t ]*\)app.setApplicationVersion("[^"]*");.*$#\1app.setApplicationVersion("'"$V_TXT"'");#' \
+ qtmips_gui/main.cpp
+
if grep -q "qtmips ($V_TXT)" debian/changelog ; then
sed --in-place \
-e '1,/^ -- .*$/s/^ -- .*$/'" -- $V_USER_NAME <$V_USER_EMAIL> $V_DATE_RFC/" \
diff --git a/qtmips_gui/main.cpp b/qtmips_gui/main.cpp
index 5e1fc45..229d537 100644
--- a/qtmips_gui/main.cpp
+++ b/qtmips_gui/main.cpp
@@ -40,7 +40,7 @@
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
app.setApplicationName("qtmips_gui");
- app.setApplicationVersion("0.1");
+ app.setApplicationVersion("0.6.7");
MainWindow w;
w.start();