summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2013-09-05 08:32:00 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2013-09-05 08:32:00 +0000
commit06c27f8749de1e90632acdfc0b0244fd8f8b1a23 (patch)
tree9f2bd69d31cbaf788bd72d0a19f2623ad5345025 /tools
parentfadd2ae1c87e513d67b7373c6b0bfb45d50e7bae (diff)
downloadwireshark-06c27f8749de1e90632acdfc0b0244fd8f8b1a23.tar.gz
Use intended regex modification for absolute paths.
svn path=/trunk/; revision=51777
Diffstat (limited to 'tools')
-rwxr-xr-xtools/asn2wrs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index aab828ba5b..d89ca9ddf8 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -2917,10 +2917,10 @@ class EthOut:
out = out.replace('\\', '/')
# Change abolute paths from cmake builds to relative paths as used
# in autotools for identical output of both build systems.
- out = re.sub(r'(/ [^ ]*/tools/)', '../../tools/', out)
- out = re.sub(r'(/ [^ ]*/epan/)', '../../epan/', out)
- out = re.sub(r'(/ [^ ]*/asn1/[^\s/]*)', '.', out)
- out = re.sub(r'(/ [^ ]*/asn1/[^\s]/)', './', out)
+ out = re.sub(r'( [^ ]*/tools/)', ' ../../tools/', out)
+ out = re.sub(r'( [^ ]*/epan/)', ' ../../epan/', out)
+ out = re.sub(r'( [^ ]*/asn1/[^\s/]*)', ' .', out)
+ out = re.sub(r'( [^ ]*/asn1/[^\s]/)', ' ./', out)
return out
#--- dbg_print -------------------------------------------------------