Admin/maketags
author haftmann
Mon, 06 Jun 2005 14:12:07 +0200
changeset 16301 f9f2e1643593
parent 12721 226fc0e2e7e3
permissions -rwxr-xr-x
migrated scripts to new webiste
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 -