aboutsummaryrefslogtreecommitdiff
path: root/scripts/rfc-tags
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-10 15:15:13 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-10 15:15:13 +0200
commit92db8db9d74f6d40d7313283013cbf45c3ba1821 (patch)
tree139fe53fd375a9c367abc37039065d72d7e3fb9b /scripts/rfc-tags
parentRepair /today. (diff)
downloadcalp-92db8db9d74f6d40d7313283013cbf45c3ba1821.tar.gz
calp-92db8db9d74f6d40d7313283013cbf45c3ba1821.tar.xz
Move some scripts to subdir.
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 ". /;\"" }'