aboutsummaryrefslogtreecommitdiff
path: root/rfc-tags
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-03-11 00:08:58 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-03-11 00:08:58 +0100
commit5e377ec8089154a72d84f2e487b0c4d89154499b (patch)
tree7b7186db59b98d480478c8c59b9472351395d369 /rfc-tags
parentWork on RRULE's. (diff)
downloadcalp-5e377ec8089154a72d84f2e487b0c4d89154499b.tar.gz
calp-5e377ec8089154a72d84f2e487b0c4d89154499b.tar.xz
Add ctags generation for RFC-file.
Diffstat (limited to 'rfc-tags')
-rwxr-xr-xrfc-tags12
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 ". /;\"" }'