From 92db8db9d74f6d40d7313283013cbf45c3ba1821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 10 Aug 2020 15:15:13 +0200 Subject: Move some scripts to subdir. --- scripts/rfc-tags | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/rfc-tags (limited to 'scripts/rfc-tags') 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 ". /;\"" }' -- cgit v1.2.3