diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-03-11 00:08:58 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-03-11 00:08:58 +0100 |
commit | 5e377ec8089154a72d84f2e487b0c4d89154499b (patch) | |
tree | 7b7186db59b98d480478c8c59b9472351395d369 /rfc-tags | |
parent | Work on RRULE's. (diff) | |
download | calp-5e377ec8089154a72d84f2e487b0c4d89154499b.tar.gz calp-5e377ec8089154a72d84f2e487b0c4d89154499b.tar.xz |
Add ctags generation for RFC-file.
Diffstat (limited to '')
-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 ". /;\"" }' |