lib/Tools/fixgoal
author wenzelm
Tue, 24 Nov 1998 12:03:09 +0100
changeset 5953 d6017ce6b93e
parent 5045 a19e5c91a1ab
child 6082 590f9e3bf4d8
permissions -rwxr-xr-x
setup Blast.setup; setup Clasimp.setup;

#!/bin/bash
#
# $Id$
#
# DESCRIPTION: replace goal(w) commands by implicit versions Goal(w)


## diagnostics

PRG=$(basename $0)

function usage()
{
  echo
  echo "Usage: $PRG [FILES|DIRS...]"
  echo
  echo "  Recursively find .ML files, replacing goal(w)"
  echo "  commands by implicit versions Goal(w)"
  echo
  echo "  Renames old versions of FILES by appending \"~~\"."
  echo
  exit 1
}


## process command line

[ $# -eq 0 -o "$1" = "-?" ] && usage

SPECS="$@"; shift $#


## main

find $SPECS -name \*.ML -print | xargs perl -w $ISABELLE_HOME/lib/scripts/fixgoal.pl