mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
63 lines
1.1 KiB
Bash
Executable file
63 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
version=@VERSION@
|
|
prefix=@CMAKE_INSTALL_PREFIX@
|
|
script_dir=@BRO_SCRIPT_INSTALL_PATH@
|
|
site_dir=@BRO_SCRIPT_INSTALL_PATH@/site
|
|
plugin_dir=@BRO_PLUGIN_INSTALL_PATH@
|
|
config_dir=@BRO_ETC_INSTALL_DIR@
|
|
python_dir=@PY_MOD_INSTALL_DIR@
|
|
bropath=@DEFAULT_BROPATH@
|
|
bro_dist=@BRO_DIST@
|
|
|
|
usage="\
|
|
Usage: bro-config [--version] [--prefix] [--script_dir] [--site_dir] [--plugin_dir] [--config_dir] [--python_dir] [--bropath] [--bro_dist]"
|
|
|
|
if [ $# -eq 0 ] ; then
|
|
echo "${usage}" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
while [ $# -ne 0 ]; do
|
|
case "$1" in
|
|
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
*) optarg= ;;
|
|
esac
|
|
|
|
case $1 in
|
|
--version)
|
|
echo $version
|
|
;;
|
|
--prefix)
|
|
echo $prefix
|
|
;;
|
|
--script_dir)
|
|
echo $script_dir
|
|
;;
|
|
--site_dir)
|
|
echo $site_dir
|
|
;;
|
|
--plugin_dir)
|
|
echo $plugin_dir
|
|
;;
|
|
--config_dir)
|
|
echo $config_dir
|
|
;;
|
|
--python_dir)
|
|
echo $python_dir
|
|
;;
|
|
--bropath)
|
|
echo $bropath
|
|
;;
|
|
--bro_dist)
|
|
echo $bro_dist
|
|
;;
|
|
*)
|
|
echo "${usage}" 1>&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
exit 0
|