From 5e377ec8089154a72d84f2e487b0c4d89154499b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 11 Mar 2019 00:08:58 +0100 Subject: Add ctags generation for RFC-file. --- Makefile | 1 + rfc-tags | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100755 rfc-tags diff --git a/Makefile b/Makefile index 8053f704..812205a8 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,7 @@ libguile-calendar.so: $(O_FILES) tags: $(C_FILES) $(H_FILES) ctags -R + rfc-tags rfc5545.txt >> tags clean: -rm parse 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 ". /;\"" }' -- cgit v1.2.3