Add a routine to return a version string including VCS information.
authorGuy Harris <guy@alum.mit.edu>
Sun, 22 Jun 2014 01:02:27 +0000 (18:02 -0700)
committerGuy Harris <guy@alum.mit.edu>
Sun, 22 Jun 2014 01:06:25 +0000 (01:06 +0000)
commitc46329c27b8c31729d2d51dc4f69da9b3923de04
tree196522550c36225b4248bc8c6ed2fb86d5b0ddab
parenta70dea195625f32a026d10d937345d177f81aead
Add a routine to return a version string including VCS information.

Add a routine get_ws_vcs_version_info() that, for builds from a tree
checked out from Wireshark's version control system, returns a string
that includes both the Wireshark version number and an indication of
what particular VCS version was checked out, and just returns
Wireshark's version number for other builds.

Use that routine rather than manually gluing VERSION and the Git version
number together.

("vcs", not "git", just in case we do something bizarre or mercurial
some day. :-))

Change-Id: Ie5c6dc83b9d3f56655eaef30fec3ec9916b6320d
Reviewed-on: https://code.wireshark.org/review/2529
Reviewed-by: Guy Harris <guy@alum.mit.edu>
24 files changed:
dumpcap.c
echld/dispatcher.c
epan/print.c
file.c
rawshark.c
tshark.c
ui/gtk/about_dlg.c
ui/gtk/file_import_dlg.c
ui/gtk/follow_stream.c
ui/gtk/main.c
ui/gtk/main_titlebar.c
ui/gtk/main_welcome.c
ui/gtk/summary_dlg.c
ui/qt/about_dialog.cpp
ui/qt/main.cpp
ui/qt/summary_dialog.cpp
ui/qt/summary_dialog.h
ui/tap_export_pdu.c
version_info.c
version_info.h
wsutil/CMakeLists.txt
wsutil/Makefile.common
wsutil/ws_version_info.c [new file with mode: 0644]
wsutil/ws_version_info.h [new file with mode: 0644]