diff publish.py @ 11:231e3317477d

More version reporting test.py -> test-svn.py publish.py now generates test.py rather than test-pub.py actually added $Rev$ to test-svn.py's properties
author Oleg Oshmyan <chortos@inbox.lv>
date Fri, 12 Mar 2010 23:59:26 +0000
parents c87ec78f1fae
children a2c9f7cfa174
line wrap: on
line diff
--- a/publish.py	Fri Mar 12 23:53:27 2010 +0000
+++ b/publish.py	Fri Mar 12 23:59:26 2010 +0000
@@ -1,12 +1,12 @@
 #! /usr/bin/python
 # Copyright (c) 2009-2010 Chortos-2 <chortos@inbox.lv>
 
-with open('test.py') as t:
+with open('test-svn.py') as t:
 	f = t.read()
 i = f.find('# $Rev: ')
 j = f.find('\n', i)
 rev = f[i+8:j-1]
 f = f[0:i] + f[j+1:]
 f = f.replace('$$REV$$', rev)
-with open('test-pub.py', 'wb') as t:
+with open('test.py', 'wb') as t:
 	t.write(f)
\ No newline at end of file