On Sun, 8 Jan 2012 07:51:19 -0800 (PST)
"Edward K. Ream" <[email protected]> wrote:
> Terry, I don't recall whether you have ever published the script that
> builds the snapshots. I think maybe you did, but I have no
> recollection of it. Would it be possible for this script to update
> the source code of leoVersion.py? If so, leoVersion.py would get the
> version from the last-revision file if it exists, and otherwise use
> the hard coded version inserted by your script.
>
> I suppose the essential point here is that updated leoVersion.py would
> *not* be committed to bzr: it would exist only for the nightly build.
> This should be safe enough.
I added this several days ago, the relevant part of the script is
os.system("bzr version-info --python %s >%s/leo/core/bzr_version.py" %
(fname, fname))
cmd = "sed -i \"s/ u'/ '/g\" %s/leo/core/bzr_version.py" % fname
os.system(cmd)
cmd = r"sed -i 's/print \(.*\)/print(\1)/' %s/leo/core/bzr_version.py" %
fname
os.system(cmd)
os.system("rm -rf %s/.bzr*" % fname)
Not as smart as running 2to3, but seems to be working fine.
Cheers -Terry
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.