← Back to team overview

mlhim-specs-dev team mailing list archive

[Branch ~cdd-dev/cdd/trunk] Rev 212: Changed the internal version tracking mechanish (not bazaar's)

 

------------------------------------------------------------
revno: 212
committer: Eduardo C. P. Ribeiro <eduardo.cesar@xxxxxxx>
branch nick: cdd
timestamp: Thu 2012-08-02 20:34:08 -0300
message:
  Changed the internal version tracking mechanish (not bazaar's)
removed:
  src/revno.txt
modified:
  src/cdd_version.py
  src/make_zip
  src/update_version.sh


--
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_version.py'
--- src/cdd_version.py	2012-08-02 23:13:32 +0000
+++ src/cdd_version.py	2012-08-02 23:34:08 +0000
@@ -1,5 +1,2 @@
-with open('revno.txt') as revno:
-    buf = revno.read()
-
-REVNO = buf.strip()
+REVNO = 211
 VERSION = '2.3.0 Rev. %d' % (int(REVNO) + 1)

=== modified file 'src/make_zip'
--- src/make_zip	2012-08-01 08:29:56 +0000
+++ src/make_zip	2012-08-02 23:34:08 +0000
@@ -1,1 +1,1 @@
-zip -r cdd.zip __main__.py cdg_main.py license.txt mlhim2.py icons/
+zip -r cdd.zip __main__.py cdg_main.py license.txt mlhim2.py icons/ cdd_version.py

=== removed file 'src/revno.txt'
--- src/revno.txt	2012-08-02 23:13:32 +0000
+++ src/revno.txt	1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
-210

=== modified file 'src/update_version.sh'
--- src/update_version.sh	2012-08-02 23:13:32 +0000
+++ src/update_version.sh	2012-08-02 23:34:08 +0000
@@ -1,2 +1,6 @@
 #!/bin/bash
-bzr revno > revno.txt
+REV=$(bzr revno)
+
+echo "REVNO = $REV
+VERSION = '2.3.0 Rev. %d' % (int(REVNO) + 1)" > cdd_version.py
+