lib/Tools/fixclasimp
author haftmann
Wed, 01 Jun 2005 14:16:45 +0200
changeset 16171 3c939bb52420
parent 15847 c05c7670f166
permissions -rwxr-xr-x
remove CVS id from *.sty latex styles
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10555
2323ec838401 /usr/bin/env bash;
wenzelm
parents: 10511
diff changeset
     1
#!/usr/bin/env bash
4077
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     2
#
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     3
# $Id$
9788
wenzelm
parents: 6082
diff changeset
     4
# Author: Markus Wenzel, TU Muenchen
4077
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     5
#
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     6
# DESCRIPTION: fix references to implicit claset and simpset
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     7
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     8
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     9
## diagnostics
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    10
10511
wenzelm
parents: 9788
diff changeset
    11
PRG="$(basename "$0")"
4077
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    12
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    13
function usage()
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    14
{
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    15
  echo
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    16
  echo "Usage: $PRG [FILES|DIRS...]"
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    17
  echo
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    18
  echo "  Recursively find .ML files, fixing references to"
4130
9fac2370a2f4 tuned usage;
wenzelm
parents: 4077
diff changeset
    19
  echo "  implicit claset and simpset."
4077
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    20
  echo
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    21
  echo "  Renames old versions of FILES by appending \"~~\"."
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    22
  echo
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    23
  exit 1
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    24
}
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    25
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    26
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    27
## process command line
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    28
9788
wenzelm
parents: 6082
diff changeset
    29
[ "$#" -eq 0 -o "$1" = "-?" ] && usage
4077
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    30
9788
wenzelm
parents: 6082
diff changeset
    31
SPECS="$@"; shift "$#"
4077
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    32
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    33
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    34
## main
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    35
6082
590f9e3bf4d8 configure AUTO_BASH, AUTO_PERL;
wenzelm
parents: 4508
diff changeset
    36
#set by configure
15847
c05c7670f166 restored AUTO_BASH/PERL -- beware of ./configure!
wenzelm
parents: 15574
diff changeset
    37
AUTO_PERL=perl
6082
590f9e3bf4d8 configure AUTO_BASH, AUTO_PERL;
wenzelm
parents: 4508
diff changeset
    38
9788
wenzelm
parents: 6082
diff changeset
    39
find $SPECS -name \*.ML -print | xargs "$AUTO_PERL" -w "$ISABELLE_HOME/lib/scripts/fixclasimp.pl"