mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00

As initial examples, this branch ports the Syslog and Finger analyzers over. We leave the old analyzers in place for now and activate them iff we compile without any Spicy. Needs `zeek-spicy-infra` branches in `spicy/`, `spicy-plugin/`, `CMake/`, and `zeek/zeek-testing-private`. Note that the analyzer events remain associated with the Spicy plugin for now: that's where they will show up with `-NN`, and also inside the Zeekygen documentation. We switch CMake over to linking the runtime library into the plugin, vs. at the top-level through object libraries.
12 lines
309 B
Bash
Executable file
12 lines
309 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# Replace absolute paths in Spicy error message with the basename. This is more
|
|
# restrictive than diff-remove-abspath to avoid catching other stuff.
|
|
|
|
if [ $(uname) == "Linux" ]; then
|
|
sed="sed -r"
|
|
else
|
|
sed="sed -E"
|
|
fi
|
|
|
|
$sed 's#/([^:/]{1,}/){1,}([^:/]{1,}\.spicy[:,])#<...>/\2#g'
|