diff options
Diffstat (limited to 'rfc-tags')
-rwxr-xr-x | rfc-tags | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rfc-tags b/rfc-tags new file mode 100755 index 00000000..b51658cf --- /dev/null +++ b/rfc-tags @@ -0,0 +1,12 @@ +#!/bin/bash + +# A simple utility script for generating ctags from some RFC files. +# +# Deffinitely works with RFC 5545. + +filename=$1 + +grep Current $filename \ + | sed 's/RFC [0-9]\+, Section //' \ + | tr -d ' ' \ + | awk -F '|' '{ print $2 "\t'$filename'\t/^" $4 ". /;\"" }' |