| 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/bash2#3# Extract a single tag from any source file using Emacs Semantic.4#5# Usage:6#7# ./tag-listing.sh TAG-NAME FILE-NAME8#9# Output is LaTeX code with tag source ready for inclusion in10# document using `\input`.13TAG=$114FILE=$216SOURCE=$(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;; /")21m4 --define="__SOURCE"="${SOURCE}" \22 tag-listing.tpl.tex