Add a WIRESHARK_RUN_FROM_BUILD_DIRECTORY environment variable on UN*X;
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Jan 2007 06:49:40 +0000 (06:49 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 2 Jan 2007 06:49:40 +0000 (06:49 +0000)
commit3b19e4b3692cebe5d61f879a0138f99d5a4d4609
treeb6c33da33b6d3f27fd6dbcdee25edeaabc8d4a38
parentfca08caaa0440b97c8a17474c491379f4b05dfa8
Add a WIRESHARK_RUN_FROM_BUILD_DIRECTORY environment variable on UN*X;
if set, and if the program isn't running with additional privileges,
it'll treat the directory in which the program is found as the data
directory.

If, on Windows, the version-number subdirectory of {data
directory}\plugins doesn't exist (which is assumed to mean that the
program is being run from the build directory), or if, on UN*X,
WIRESHARK_RUN_FROM_BUILD_DIRECTORY is set, the plugin directory is the
"plugins" subdirectory of the data directory, and all subdirectories of
that directory are scanned for plugins, as the "plugins" subdirectory of
the build directory contains subdirectories for the plugins; this means
that if we're running from the build directory, we'll find the plugins
we built in the build tree.

When generating the wireshark-filter man page, run tshark with
WIRESHARK_RUN_FROM_BUILD_DIRECTORY set, so it uses the plugins from the
build to generate the list of filters.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20261 f5534014-38df-0310-8fa8-9805f1628bb7
14 files changed:
dftest.c
doc/Makefile.am
epan/epan.c
epan/epan.h
epan/filesystem.c
epan/filesystem.h
epan/libwireshark.def
epan/plugins.c
epan/plugins.h
epan/proto.c
epan/proto.h
gtk/about_dlg.c
gtk/main.c
tshark.c