lib/Tools/fixseq
author paulson
Wed, 02 Dec 1998 15:53:05 +0100
changeset 6006 d2e271b8d651
parent 4508 f102cb0140fe
child 6082 590f9e3bf4d8
permissions -rwxr-xr-x
new rule rev_bexI
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$
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     4
#
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     5
# DESCRIPTION: fix references to obsolete Pure/Sequence structure
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
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
     8
## diagnostics
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
PRG=$(basename $0)
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    11
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    12
function usage()
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
  echo
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    15
  echo "Usage: $PRG [FILES|DIRS...]"
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 "  Recursively find .ML files, fixing references to"
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    18
  echo "  the obsolete Pure/Sequence structure."
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    19
  echo
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    20
  echo "  Renames old versions of FILES by appending \"~~\"."
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
  exit 1
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    23
}
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    24
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
## process command line
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
[ $# -eq 0 -o "$1" = "-?" ] && usage
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    29
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    30
SPECS="$@"; shift $#
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    31
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    32
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    33
## main
90779455c9a7 fix references to obsolete Pure/Sequence structure;
wenzelm
parents:
diff changeset
    34
4508
f102cb0140fe do require perl;
wenzelm
parents: 4268
diff changeset
    35
find $SPECS -name \*.ML -print | xargs perl -w $ISABELLE_HOME/lib/scripts/fixseq.pl