mlhim-specs-dev team mailing list archive
-
mlhim-specs-dev team
-
Mailing list archive
-
Message #00648
[Branch ~cdd-dev/cdd/trunk] Rev 211: Changed the version name displayed.
------------------------------------------------------------
revno: 211
committer: Eduardo C. P. Ribeiro <eduardo.cesar@xxxxxxx>
branch nick: cdd
timestamp: Thu 2012-08-02 20:13:32 -0300
message:
Changed the version name displayed.
added:
src/cdd_version.py
src/revno.txt
src/update_version.sh
modified:
src/cdd.py
--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk
Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'src/cdd.py'
--- src/cdd.py 2012-08-02 20:43:46 +0000
+++ src/cdd.py 2012-08-02 23:13:32 +0000
@@ -13,6 +13,7 @@
import cdg_main
import mlhim2
+import cdd_version
gettext.bindtextdomain('CDD','locale/en')
gettext.textdomain('CDD')
@@ -394,7 +395,7 @@
# First we create and fill the info object
about = wx.AboutDialogInfo()
about.Name = "CDD (aka. CCD Editor)"
- about.Version = "1.0"
+ about.Version = cdd_version.VERSION
about.Copyright = "(C) 2012 Timothy W. Cook"
about.Description = wordwrap(
_("Used for creating and editing constraint definitions for the MLHIM project."),
=== added file 'src/cdd_version.py'
--- src/cdd_version.py 1970-01-01 00:00:00 +0000
+++ src/cdd_version.py 2012-08-02 23:13:32 +0000
@@ -0,0 +1,5 @@
+with open('revno.txt') as revno:
+ buf = revno.read()
+
+REVNO = buf.strip()
+VERSION = '2.3.0 Rev. %d' % (int(REVNO) + 1)
=== added file 'src/revno.txt'
--- src/revno.txt 1970-01-01 00:00:00 +0000
+++ src/revno.txt 2012-08-02 23:13:32 +0000
@@ -0,0 +1,1 @@
+210
=== added file 'src/update_version.sh'
--- src/update_version.sh 1970-01-01 00:00:00 +0000
+++ src/update_version.sh 2012-08-02 23:13:32 +0000
@@ -0,0 +1,2 @@
+#!/bin/bash
+bzr revno > revno.txt