diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-03-11 00:08:58 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-03-11 00:08:58 +0100 |
commit | 5e377ec8089154a72d84f2e487b0c4d89154499b (patch) | |
tree | 7b7186db59b98d480478c8c59b9472351395d369 | |
parent | Work on RRULE's. (diff) | |
download | calp-5e377ec8089154a72d84f2e487b0c4d89154499b.tar.gz calp-5e377ec8089154a72d84f2e487b0c4d89154499b.tar.xz |
Add ctags generation for RFC-file.
-rw-r--r-- | Makefile | 1 | ||||
-rwxr-xr-x | rfc-tags | 12 |
2 files changed, 13 insertions, 0 deletions
@@ -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 ". /;\"" }' |