term-paper-diffeq
view doc/tag-listing.sh @ 113:bc94df402ff0
Updated report to comply with source code changes introduced in rev 110.
| author | Dmitry Dzhus <mail@sphinx.net.ru> |
|---|---|
| date | Fri Nov 16 19:08:52 2007 +0300 (2 years ago) |
| parents | 36d61e329878 |
| children |
line source
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`.
13 TAG=$1
14 FILE=$2
16 SOURCE=$(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;; /")
21 m4 --define="__SOURCE"="${SOURCE}" \
22 tag-listing.tpl.tex
