Admin/maketags
author paulson
Tue, 10 Feb 2004 12:02:11 +0100
changeset 14378 69c4d5997669
parent 12721 226fc0e2e7e3
permissions -rwxr-xr-x
generic of_nat and of_int functions, and generalization of iszero and neg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12721
226fc0e2e7e3 #!/usr/bin/env bash;
wenzelm
parents: 9049
diff changeset
     1
#!/usr/bin/env bash
9049
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
     2
#
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
     3
# $Id$
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
     4
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
     5
find . \( -name \*.ML -o -name \*.sml -o -name \*.sig \) -print | \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
     6
  etags \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
     7
    --language=none \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
     8
    --regex='/[ \t]*structure +\([A-Za-z_0-9]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
     9
    --regex='/[ \t]*functor +\([A-Za-z_0-9]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    10
    --regex='/[ \t]*signature +\([A-Za-z_0-9]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    11
    --regex='/[ \t]*fun +\([A-Za-z_0-9]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    12
    --regex='/[ \t]*val +\([A-Za-z_0-9]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    13
    --regex='/[ \t]*and +\([A-Za-z_0-9]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    14
    --regex='/[ \t]*exception +\([A-Za-z_0-9]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    15
    --regex='/[ \t]*type +\([A-Za-z_0-9]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    16
    --regex='/[ \t]*datatype +\([A-Za-z_0-9]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    17
    --regex='/[ \t]*= +\([A-Z_]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    18
    --regex='/[ \t]*| +\([A-Z_]+\)/\1/' \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    19
    -
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    20
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    21
find . -type f -print | \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    22
  fgrep -v .ML | \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    23
  fgrep -v .sml | \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    24
  fgrep -v .sig | \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    25
  fgrep -v TAGS | \
8a3101b62c4f renamed mktags to maketags;
wenzelm
parents:
diff changeset
    26
  etags --language=none --append -