diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-07-03 01:45:32 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-07-03 08:46:01 +0000 |
commit | b4ce352539ec1e88a8002c65a38cc3029860c0e0 (patch) | |
tree | f2c702b2722c20464477e5f85cb5c80abab31915 /Makefile.common | |
parent | d70e56a733a1d432dedc0dce7fbd992ef225d0c5 (diff) |
Make --help and --version information a bit more uniform.
Have --version print the version number, the copyright information, the
"compiled with" information, the "running on/with" information, and the
compiler information.
Have --help print the version number, a one-line summary of what the
program does, a reference to http://www.wireshark.org for more
information, a Usage: line, and a list of command-line options.
This means programs doing that don't need to include version.h; that's
left up to get_ws_vcs_version_info() to do.
Change-Id: Idac641bc10e4dfd04c9914d379b3a3e0cc5ca8cb
Reviewed-on: https://code.wireshark.org/review/2794
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Makefile.common b/Makefile.common index 5ed647f5d6..00a003186f 100644 --- a/Makefile.common +++ b/Makefile.common @@ -50,7 +50,6 @@ SHARK_COMMON_SRC = \ # corresponding headers SHARK_COMMON_INCLUDES = \ - version.h \ capture-pcap-util.h \ capture-pcap-util-int.h \ cfile.h \ @@ -107,9 +106,10 @@ rawshark_SOURCES = \ # text2pcap specifics text2pcap_SOURCES = \ - pcapio.c \ - text2pcap.c \ - text2pcap-scanner.l + pcapio.c \ + text2pcap.c \ + text2pcap-scanner.l \ + version_info.c text2pcap_INCLUDES = \ pcapio.h \ @@ -117,20 +117,23 @@ text2pcap_INCLUDES = \ # mergecap specifics mergecap_SOURCES = \ - mergecap.c + mergecap.c \ + version_info.c # editcap specifics editcap_SOURCES = \ - editcap.c + editcap.c \ + version_info.c # reordercap specifics reordercap_SOURCES = \ - reordercap.c \ - version.h + reordercap.c \ + version_info.c # capinfos specifics capinfos_SOURCES = \ - capinfos.c + capinfos.c \ + version_info.c # captype specifics captype_SOURCES = \ |