Improve diff-remove-abspath canonifier: collapse '/' sequences

This commit is contained in:
Jon Siwek 2018-08-20 12:45:32 -05:00
parent 6595b21e2e
commit 4912513517
3 changed files with 17 additions and 1 deletions

View file

@ -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
* Documentation improvements (Daniel Thayer)

View file

@ -1 +1 @@
2.5-870
2.5-875

View file

@ -2,4 +2,11 @@
#
# 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'