From 0f9ffd69231e26d707c585d9a3884b95d244232d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Tue, 16 Aug 2005 06:45:17 +0000 Subject: Move SVNVERSION handling into version_info. That way, we won't have to recompile tethereal.o etc each time the svn version has changed, relinking is sufficient. I'm not sure what to do about mergecap, as it currently doesn't link against version_info, so it's "overhead" either way. svn path=/trunk/; revision=15371 --- version_info.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'version_info.c') diff --git a/version_info.c b/version_info.c index 0e6af95fe5..11a069113c 100644 --- a/version_info.c +++ b/version_info.c @@ -73,6 +73,15 @@ #include "version_info.h" #include "pcap-util.h" +#include "svnversion.h" + +#ifdef SVNVERSION + const char *svnversion = " (" SVNVERSION ")"; +#else + const char *svnversion = ""; +#endif + + /* * See whether the last line in the string goes past column 80; if so, * replace the blank at the specified point with a newline. -- cgit v1.2.3