lib/Tools/fixclasimp
author wenzelm
Mon, 03 Nov 1997 11:48:56 +0100
changeset 4077 8ce7c713968c
child 4130 9fac2370a2f4
permissions -rwxr-xr-x
fix references to implicit claset and simpset;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4077
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     1
#!/bin/bash
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$
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     4
#
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     5
# DESCRIPTION: fix references to implicit claset and simpset
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     6
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
## diagnostics
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
     9
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    10
PRG=$(basename $0)
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    11
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    12
function usage()
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    13
{
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    14
  echo
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    15
  echo "Usage: $PRG [FILES|DIRS...]"
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    16
  echo
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    17
  echo "  Recursively find .ML files, fixing references to"
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    18
  echo "  implicit claset and simpset:"
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    19
  echo
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    20
  echo "  FIXME"
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    21
  echo
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    22
  echo "  Renames old versions of FILES by appending \"~~\"."
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    23
  echo
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    24
  exit 1
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
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    28
## process command line
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    29
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    30
[ $# -eq 0 -o "$1" = "-?" ] && usage
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    31
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    32
SPECS="$@"; shift $#
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
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    35
## main
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    36
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    37
PERL=$(type -path perl)
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    38
if [ -z $PERL ]; then
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    39
  echo "$PRG fatal error: no perl!?"
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    40
else
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    41
  find $SPECS -name \*.ML -print | xargs $PERL $ISABELLE_HOME/lib/scripts/fixclasimp.pl
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    42
fi