diff options
author | Jörg Mayer <jmayer@loplof.de> | 2005-08-16 06:45:17 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2005-08-16 06:45:17 +0000 |
commit | 0f9ffd69231e26d707c585d9a3884b95d244232d (patch) | |
tree | 6aa2e7cf3b2dddb5dc52a06ab32493270543dcaf /version_info.c | |
parent | bc35e184c794f2539a33ca8c179650356f1bd480 (diff) | |
download | wireshark-0f9ffd69231e26d707c585d9a3884b95d244232d.tar.gz wireshark-0f9ffd69231e26d707c585d9a3884b95d244232d.tar.bz2 wireshark-0f9ffd69231e26d707c585d9a3884b95d244232d.zip |
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
Diffstat (limited to 'version_info.c')
-rw-r--r-- | version_info.c | 9 |
1 files changed, 9 insertions, 0 deletions
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. |