aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rwxr-xr-xrfc-tags12
2 files changed, 13 insertions, 0 deletions
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 ". /;\"" }'