annotate emacs/otags @ 5540:cda6a105ae9a before-ov-branch

[project @ 2005-11-17 05:47:13 by jwe]
author jwe
date Thu, 17 Nov 2005 05:47:13 +0000
parents 8b113cca48f1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3218
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
1 #! /bin/sh
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
2
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
3 # Generate a TAGS file from a set of Octave .m files for use with Emacs.
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
4 #
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
5 # Run as '$ otags' in the given Octave directory to generate a
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
6 # TAGS file. If you want to include another directory, add a line
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
7 # prior to the "*.m" line containing something like
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
8 # `--include=/path/to/other/directory/TAGS" \'.
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
9
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
10 # Tags are generated for function names and for global variables. For
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
11 # global variables it doesn't work for more than one line global
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
12 # variables. :-(
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
13
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
14 # Tags are also created for lines of the form '###key foobar' so that
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
15 # you can jump to this specific place just by typing `M-. foobar'.
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
16 # Note that tags are not generated for scripts so that you have to add
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
17 # a line by yourself of the form `###key <script-name>' if you want to
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
18 # jump to it. :-(
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
19
3219
30770ba4457a [project @ 1998-11-13 03:44:31 by jwe]
jwe
parents: 3218
diff changeset
20 # Author: Mario Storti <mstorti@minerva.unl.edu.ar>
30770ba4457a [project @ 1998-11-13 03:44:31 by jwe]
jwe
parents: 3218
diff changeset
21
3218
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
22 etags --lang=none \
4151
8b113cca48f1 [project @ 2002-11-04 22:11:25 by jwe]
jwe
parents: 3219
diff changeset
23 --regex='/[ \t]*function.*=[ \t]*\([^ \t()]*\)[ \t]*(/\1/' \
8b113cca48f1 [project @ 2002-11-04 22:11:25 by jwe]
jwe
parents: 3219
diff changeset
24 --regex='/[ \t]*function.*=[ \t]*\([^ \t()]*\)[ \t]*$/\1/' \
8b113cca48f1 [project @ 2002-11-04 22:11:25 by jwe]
jwe
parents: 3219
diff changeset
25 --regex='/[ \t]*function[ \t]*\([^ \t()]*\)[ \t]*(/\1/' \
8b113cca48f1 [project @ 2002-11-04 22:11:25 by jwe]
jwe
parents: 3219
diff changeset
26 --regex='/[ \t]*function[ \t]*\([^ \t()]*\)[ \t]*$/\1/' \
3218
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
27 --regex='/###key \(.*\)/\1/' \
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
28 --regex='/[ \t]*global[ \t].*/' \
2c91af0db179 [project @ 1998-11-12 16:44:12 by jwe]
jwe
parents:
diff changeset
29 *.m