Add alternative way to set BROPATH for running bro from build/ dir.

Adds two extra shell scripts, one to handle either the c-shell
or bourne-shell syntax for setting environment variables, that can
be sourced in order to set the BROPATH directly in the current
shell/environment in a way that's compatible with running bro
from the build/ directory.
This commit is contained in:
Jon Siwek 2011-03-02 14:14:07 -06:00
parent 0b0c3f6ede
commit abd92115f4
3 changed files with 16 additions and 4 deletions

View file

@ -1,3 +1,4 @@
#!/bin/sh
# After configured by CMake, this file prints the absolute path to policy
# files that come with the source distributions of Bro and Broctl as well
# as policy files that are generated by the BIF compiler at compile time
@ -6,7 +7,7 @@
# the build directory, avoiding the need to install it. This could be
# done like:
#
# BROPATH=`source bro-path-dev` ./src/bro
# BROPATH=`./bro-path-dev` ./src/bro
#
broPolicies=${PROJECT_SOURCE_DIR}/policy:${PROJECT_SOURCE_DIR}/policy/sigs:${PROJECT_SOURCE_DIR}/policy/time-machine