Cleanup babeltrace-cfg, use BABELTRACE_PLUGIN_PATH
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 9 Feb 2017 03:04:45 +0000 (22:04 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:37 +0000 (12:57 -0400)
commit5a3ee633fdd379e8acf7535f0ba91fb05234a36a
tree6a121aeac8a51147a660774aa29bfcd5e4ccb14f
parentfeb5fe23a635825a74165977d7e6e4389d052e8d
Cleanup babeltrace-cfg, use BABELTRACE_PLUGIN_PATH

This commit changes a few things at once:

* Cleanups the help message (orders long options alphabetically,
  adds metavars where missing, etc.).

* Removes is_setuid_setgid() to use the common bt_is_setuid_setgid().

* Makes the CLI load plugins *non-recursively*, which is more in line
  with typical lists of paths such as PATH, LD_LIBRARY_PATH, PYTHONPATH,
  etc., from the following directories, in this order:

  1. BABELTRACE_PLUGIN_PATH environment variable
  2. --plugin-path option
  3. ~/.local/lib/babeltrace/plugins
  4. System path (/usr/lib/babeltrace/plugins)

  For the in-tree version (conveter/babeltrace), Makefile.am passes all
  the in-tree plugin paths so that it can find everything that is known
  within the tree.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
converter/Makefile.am
converter/babeltrace-cfg.c
converter/babeltrace-cfg.h
converter/babeltrace.c
converter/default-cfg.c
This page took 0.025815 seconds and 4 git commands to generate.