[ovs-dev] [unixctl_py 4/6] python: New method to retrieve OVS version at runtime.

Ethan Jackson ethan at nicira.com
Fri Mar 2 01:36:19 UTC 2012


> Please implement the fragment below as writes to $@.tmp followed by
> "mv $@.tmp $@", otherwise an interrupted "make", or some kind of
> error, can result in a partial version.py.  In theory "make" is
> supposed to delete version.py in some of those cases but my experience
> is that life is easier if you don't have to worry about it at all.

Good idea, I've updated the patch to do this.

Ethan

>
>> +ALL_LOCAL += $(srcdir)/python/ovs/version.py
>> +$(srcdir)/python/ovs/version.py: config.status
>> +     $(ro_shell) > $@
>> +     echo 'VERSION = "$(VERSION)"' >> $@
>> +     echo 'BUILDNR = "$(BUILDNR)"' >> $@



More information about the dev mailing list