lib/Tools/fixdots
author wenzelm
Tue Jan 12 12:17:53 1999 +0100 (1999-01-12)
changeset 6082 590f9e3bf4d8
parent 4508 f102cb0140fe
child 9788 df671fa2562a
permissions -rwxr-xr-x
configure AUTO_BASH, AUTO_PERL;
     1 #!/bin/bash
     2 #
     3 # $Id$
     4 #
     5 # DESCRIPTION: ensure that dots in formulas are followed by non-idents
     6 
     7 
     8 ## diagnostics
     9 
    10 PRG=$(basename $0)
    11 
    12 function usage()
    13 {
    14   echo
    15   echo "Usage: $PRG [FILES|DIRS...]"
    16   echo
    17   echo "  Recursively find .thy/.ML files, patching them to ensure that"
    18   echo "  dots in formulas are followed by non-idents."
    19   echo
    20   echo "  Renames old versions of FILES by appending \"~~\"."
    21   echo
    22   exit 1
    23 }
    24 
    25 
    26 ## process command line
    27 
    28 [ $# -eq 0 -o "$1" = "-?" ] && usage
    29 
    30 SPECS="$@"; shift $#
    31 
    32 
    33 ## main
    34 
    35 #set by configure
    36 AUTO_PERL=perl
    37 
    38 find $SPECS \( -name \*.thy -o -name \*.ML \) -print | \
    39   xargs $AUTO_PERL -w $ISABELLE_HOME/lib/scripts/fixdots.pl