summaryrefslogtreecommitdiff
path: root/tools/asn2wrs.py
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2013-09-05 08:22:44 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2013-09-05 08:22:44 +0000
commitfadd2ae1c87e513d67b7373c6b0bfb45d50e7bae (patch)
tree19ae45c3b6a52bd500268233074a9f8d8f786068 /tools/asn2wrs.py
parent8b842aeb0282cd83640f0c95c1ba3636b66ff4a5 (diff)
downloadwireshark-fadd2ae1c87e513d67b7373c6b0bfb45d50e7bae.tar.gz
Removed TAB as indent.
Fixed regex for modifying absolute paths in header. svn path=/trunk/; revision=51776
Diffstat (limited to 'tools/asn2wrs.py')
-rwxr-xr-xtools/asn2wrs.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index 75b5830936..aab828ba5b 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -2915,13 +2915,13 @@ class EthOut:
out += '\n'
# Make Windows path separator look like Unix path separator
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)
- return out
+ # 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)
+ return out
#--- dbg_print -------------------------------------------------------
def dbg_print(self):