Version information is typically fairly useful when debugging Open
vSwitch. This patch adds a new version.py module which python code
can use to report its version to callers.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
python/ovs/socket_util.py \
python/ovs/stream.py \
python/ovs/timeval.py \
+ python/ovs/version.py \
python/ovs/vlog.py \
python/ovs/util.py
PYFILES = $(ovs_pyfiles) python/ovs/dirs.py $(ovstest_pyfiles)
UNINSTALL_LOCAL += ovs-uninstall-local
ovs-uninstall-local:
rm -f $(DESTDIR)$(pkgdatadir)/python/ovs/dirs.py
+
+ALL_LOCAL += $(srcdir)/python/ovs/version.py
+$(srcdir)/python/ovs/version.py: config.status
+ $(ro_shell) > $@.tmp
+ echo 'VERSION = "$(VERSION)"' >> $@.tmp
+ echo 'BUILDNR = "$(BUILDNR)"' >> $@.tmp
+ mv $@.tmp $@
--- /dev/null
+version.py