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
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue