diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-10 15:15:13 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-10 15:15:13 +0200 |
commit | 92db8db9d74f6d40d7313283013cbf45c3ba1821 (patch) | |
tree | 139fe53fd375a9c367abc37039065d72d7e3fb9b /scripts/rfc-tags | |
parent | Repair /today. (diff) | |
download | calp-92db8db9d74f6d40d7313283013cbf45c3ba1821.tar.gz calp-92db8db9d74f6d40d7313283013cbf45c3ba1821.tar.xz |
Move some scripts to subdir.
Diffstat (limited to 'scripts/rfc-tags')
-rwxr-xr-x | scripts/rfc-tags | 12 |
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 ". /;\"" }' |