Hi, 2012/5/3 David Sommerseth <openvpn.l...@topphemmelig.net>: > What I would like to see is something more like what's found in TOR > projects' obfsproxy, where the Makefile generates a micro-version.i, > which is included. As this file is forced to be (re-)created each > time, it will always be accurate. > > I don't say that obfsproxy have done the implementation correct, but > it can at least be a seed for inspiration:
I agree that the Makefile-based approach is more useful. Regarding the implementation: Depending on compile vs link time it might be faster to move the re-compiled part into a dedicated version.c which only contains a const char *get_ovpn_version() { return PACKAGE_VERSION_EXTRA_GIT_REVISION; } Cheers Fabian