Admin/maketags
author haftmann
Fri, 12 Oct 2007 10:26:18 +0200
changeset 24999 1dbe785ed529
parent 12721 226fc0e2e7e3
permissions -rwxr-xr-x
added
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 -