lib/Tools/fixclasimp
author wenzelm
Fri, 13 Mar 1998 18:15:14 +0100
changeset 4744 4469d498cd48
parent 4508 f102cb0140fe
child 6082 590f9e3bf4d8
permissions -rwxr-xr-x
moved addsplits [expand_if] from HOL_basic_ss to HOL_ss;
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"
4130
9fac2370a2f4 tuned usage;
wenzelm
parents: 4077
diff changeset
    18
  echo "  implicit claset and simpset."
4077
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 "  Renames old versions of FILES by appending \"~~\"."
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
  exit 1
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    23
}
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
## process command line
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
[ $# -eq 0 -o "$1" = "-?" ] && usage
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
SPECS="$@"; shift $#
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
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    33
## main
8ce7c713968c fix references to implicit claset and simpset;
wenzelm
parents:
diff changeset
    34
4508
f102cb0140fe do require perl;
wenzelm
parents: 4130
diff changeset
    35
find $SPECS -name \*.ML -print | xargs perl -w $ISABELLE_HOME/lib/scripts/fixclasimp.pl