changelog shortlog tags changeset files revisions annotate raw

doc/tag-listing.sh

changeset 113: bc94df402ff0
parent:36d61e329878
author: Dmitry Dzhus <mail@sphinx.net.ru>
date: Fri Nov 16 19:08:52 2007 +0300 (13 months ago)
permissions: -rwxr-xr-x
description: Updated report to comply with source code changes introduced in rev 110.
1#!/bin/bash
2#
3# Extract a single tag from any source file using Emacs Semantic.
4#
5# Usage:
6#
7# ./tag-listing.sh TAG-NAME FILE-NAME
8#
9# Output is LaTeX code with tag source ready for inclusion in
10# document using `\input`.
11
12
13TAG=$1
14FILE=$2
15
16SOURCE=$(emacs --batch --load grok-lisp.el \
17 --exec "(print-tag-from-file \"${TAG}\" \"${FILE}\")" \
18 2> /dev/null \
19 | grep -v "[ ]*;; .*" | sed -e "s/^\([ ]*\);;@ /\1;; /")
20
21m4 --define="__SOURCE"="${SOURCE}" \
22 tag-listing.tpl.tex