aboutsummaryrefslogtreecommitdiff
path: root/scripts/rfc-tags
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rfc-tags')
-rwxr-xr-xscripts/rfc-tags12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/rfc-tags b/scripts/rfc-tags
new file mode 100755
index 00000000..b51658cf
--- /dev/null
+++ b/scripts/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 ". /;\"" }'