lib/Tools/fixseq
author wenzelm
Sun, 15 Oct 2000 19:50:35 +0200
changeset 10220 2a726de6e124
parent 9788 df671fa2562a
child 10511 efb3428c9879
permissions -rwxr-xr-x
proper symbol markup with \isamath, \isatext; support sub/super scripts:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4268
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     1
#!/bin/bash
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     2
#
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     3
# $Id$
9788
wenzelm
parents: 6082
diff changeset
     4
# Author: Markus Wenzel, TU Muenchen
wenzelm
parents: 6082
diff changeset
     5
# License: GPL (GNU GENERAL PUBLIC LICENSE)
4268
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     6
#
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     7
# DESCRIPTION: fix references to obsolete Pure/Sequence structure
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     8
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     9
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    10
## diagnostics
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    11
9788
wenzelm
parents: 6082
diff changeset
    12
PRG=$(basename "$0")
4268
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    13
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    14
function usage()
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    15
{
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    16
  echo
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    17
  echo "Usage: $PRG [FILES|DIRS...]"
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    18
  echo
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    19
  echo "  Recursively find .ML files, fixing references to"
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    20
  echo "  the obsolete Pure/Sequence structure."
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    21
  echo
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    22
  echo "  Renames old versions of FILES by appending \"~~\"."
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    23
  echo
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    24
  exit 1
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    25
}
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    26
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    27
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    28
## process command line
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    29
9788
wenzelm
parents: 6082
diff changeset
    30
[ "$#" -eq 0 -o "$1" = "-?" ] && usage
4268
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    31
9788
wenzelm
parents: 6082
diff changeset
    32
SPECS="$@"; shift "$#"
4268
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    33
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    34
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    35
## main
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    36
6082
590f9e3bf4d8 configure AUTO_BASH, AUTO_PERL;
wenzelm
parents: 4508
diff changeset
    37
#set by configure
590f9e3bf4d8 configure AUTO_BASH, AUTO_PERL;
wenzelm
parents: 4508
diff changeset
    38
AUTO_PERL=perl
590f9e3bf4d8 configure AUTO_BASH, AUTO_PERL;
wenzelm
parents: 4508
diff changeset
    39
9788
wenzelm
parents: 6082
diff changeset
    40
find $SPECS -name \*.ML -print | xargs "$AUTO_PERL" -w "$ISABELLE_HOME/lib/scripts/fixseq.pl"