lib/Tools/fixgoal
author wenzelm
Thu, 01 Jul 1999 21:28:49 +0200
changeset 6880 ce2b19e4402d
parent 6082 590f9e3bf4d8
child 9788 df671fa2562a
permissions -rwxr-xr-x
Isar_examples/KnasterTarski.thy;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5045
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
     1
#!/bin/bash
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
     2
#
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
     3
# $Id$
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
     4
#
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
     5
# DESCRIPTION: replace goal(w) commands by implicit versions Goal(w)
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
     6
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
     7
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
     8
## diagnostics
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
     9
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    10
PRG=$(basename $0)
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    11
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    12
function usage()
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    13
{
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    14
  echo
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    15
  echo "Usage: $PRG [FILES|DIRS...]"
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    16
  echo
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    17
  echo "  Recursively find .ML files, replacing goal(w)"
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    18
  echo "  commands by implicit versions Goal(w)"
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    19
  echo
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    20
  echo "  Renames old versions of FILES by appending \"~~\"."
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    21
  echo
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    22
  exit 1
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    23
}
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    24
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    25
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    26
## process command line
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    27
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    28
[ $# -eq 0 -o "$1" = "-?" ] && usage
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    29
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    30
SPECS="$@"; shift $#
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    31
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    32
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    33
## main
a19e5c91a1ab replace goal(w) commands by implicit versions Goal(w);
wenzelm
parents:
diff changeset
    34
6082
590f9e3bf4d8 configure AUTO_BASH, AUTO_PERL;
wenzelm
parents: 5045
diff changeset
    35
#set by configure
590f9e3bf4d8 configure AUTO_BASH, AUTO_PERL;
wenzelm
parents: 5045
diff changeset
    36
AUTO_PERL=perl
590f9e3bf4d8 configure AUTO_BASH, AUTO_PERL;
wenzelm
parents: 5045
diff changeset
    37
590f9e3bf4d8 configure AUTO_BASH, AUTO_PERL;
wenzelm
parents: 5045
diff changeset
    38
find $SPECS -name \*.ML -print | xargs $AUTO_PERL -w $ISABELLE_HOME/lib/scripts/fixgoal.pl