Mercurial > hg > freeDiameter
view contrib/tools/grep_fd_dict_dump @ 1487:5c2d061a8c8e
csv_to_fd: improve validation
When an AVP Code or Name is duplicate, differentiate
between a duplicate entry (AVPs are equivalent)
versus an actual mismatch.
Consistent AVP formatting in errors.
Collect all errors and display at end of each file parse,
instead of exiting on first error.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Fri, 27 Mar 2020 15:32:27 +1100 |
parents | 519c1a85dcd1 |
children | 7d121fbf269a |
line wrap: on
line source
#!/bin/sh # Grep stdin for the output of fd_dict_dump() and reformat to remove # pointer addresses. Use to post-process the output of dict_dump.fdx # into a format that's diff-able between freeDiameter invocations. egrep '^ *{dict|VENDOR|APPLICATION|TYPE|ENUMVAL|AVP|COMMAND|RULE' \ | sed \ -e 's/{dict.*}(@0x[^ ]*): //' \ -e 's/p:[^ ]* //'