aboutsummaryrefslogtreecommitdiffstats
path: root/tools/asn2wrs.py
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-11-22 10:01:28 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2015-11-22 11:30:54 +0000
commitd61c3d592b88ab9685b10552b29ab799a89ff0b7 (patch)
tree925e1dbbee6225579ff24c100a2a9a21d619b37a /tools/asn2wrs.py
parent759bfb6c45185c06be146b0705465e5560069dff (diff)
asn2wrs.py: fix path substitution when generating ASN.1 dissectors with CMake on Windows
Change-Id: I48e7d48544274f27d276e7128f8d2a2727c0b9cd Reviewed-on: https://code.wireshark.org/review/12031 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'tools/asn2wrs.py')
-rwxr-xr-xtools/asn2wrs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index 064029798f..cbeb49f881 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -2943,8 +2943,8 @@ class EthOut:
out = out.replace('\\', '/')
# Change absolute paths and relative paths generated outside
# source directory to paths relative to asn1/<proto> subdir.
- out = re.sub(r'(\s)[./]\S*(/tools/|/epan/)', r'\1../..\2', out)
- out = re.sub(r'(\s)[./]\S*/asn1/\S*?([\s/])', r'\1.\2', out)
+ out = re.sub(r'(\s)[./A-Z]\S*(/tools/|/epan/)', r'\1../..\2', out)
+ out = re.sub(r'(\s)[./A-Z]\S*/asn1/\S*?([\s/])', r'\1.\2', out)
return out
#--- dbg_print -------------------------------------------------------