mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Improve diff-remove-abspath canonifier: collapse '/' sequences
This commit is contained in:
parent
6595b21e2e
commit
4912513517
3 changed files with 17 additions and 1 deletions
9
CHANGES
9
CHANGES
|
@ -1,4 +1,13 @@
|
||||||
|
|
||||||
|
2.5-875 | 2018-08-20 12:45:32 -0500
|
||||||
|
|
||||||
|
* Improve diff-remove-abspath canonifier: collapse '/' sequences
|
||||||
|
(Jon Siwek, Corelight)
|
||||||
|
|
||||||
|
* Remove unused redef-able constants (Daniel Thayer)
|
||||||
|
|
||||||
|
* Convert some redef-able constants to runtime options (Daniel Thayer)
|
||||||
|
|
||||||
2.5-870 | 2018-08-17 17:07:57 -0500
|
2.5-870 | 2018-08-17 17:07:57 -0500
|
||||||
|
|
||||||
* Documentation improvements (Daniel Thayer)
|
* Documentation improvements (Daniel Thayer)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.5-870
|
2.5-875
|
||||||
|
|
|
@ -2,4 +2,11 @@
|
||||||
#
|
#
|
||||||
# Replace absolute paths with the basename.
|
# Replace absolute paths with the basename.
|
||||||
|
|
||||||
|
if [ `uname` == "Linux" ]; then
|
||||||
|
sed="sed -r"
|
||||||
|
else
|
||||||
|
sed="sed -E"
|
||||||
|
fi
|
||||||
|
|
||||||
|
$sed 's#/+#/#g' | \
|
||||||
sed 's#/\([^/]\{1,\}/\)\{1,\}\([^/]\{1,\}\)#<...>/\2#g'
|
sed 's#/\([^/]\{1,\}/\)\{1,\}\([^/]\{1,\}\)#<...>/\2#g'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue