diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2013-09-05 08:32:00 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2013-09-05 08:32:00 +0000 |
commit | 06c27f8749de1e90632acdfc0b0244fd8f8b1a23 (patch) | |
tree | 9f2bd69d31cbaf788bd72d0a19f2623ad5345025 /tools | |
parent | fadd2ae1c87e513d67b7373c6b0bfb45d50e7bae (diff) | |
download | wireshark-06c27f8749de1e90632acdfc0b0244fd8f8b1a23.tar.gz |
Use intended regex modification for absolute paths.
svn path=/trunk/; revision=51777
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/asn2wrs.py | 8 |
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 ------------------------------------------------------- |