summaryrefslogtreecommitdiff
path: root/doc/gen-tags.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doc/gen-tags.sh')
-rwxr-xr-xdoc/gen-tags.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/gen-tags.sh b/doc/gen-tags.sh
new file mode 100755
index 0000000..aba6672
--- /dev/null
+++ b/doc/gen-tags.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+#
+# Based on a script found on the englinemtn-devel mailinglist
+# written by Carsten Haitzler <ras...@rasterman.com>
+#
+
+echo '<libnltags>'
+for f in api/group__*.html
+do
+ bf=$(basename $f)
+
+ grep -oE '<!-- doxytag.* -->' $f |
+ sed 's/<!-- doxytag:/<libnltag/' |
+ sed "s/-->/file=\"$bf\" \/>/" |
+ sed "s/ ref=\"/ href=\"$bf#/" |
+ sed 's/ member="\([^:]*::\)\([^"]*\)"/ member="\2"/' |
+ sed 's/ member="\([^"]*\)"/ short="\1"/'
+done
+echo '</libnltags>'