diff -r 59808d00ea8d -r a19e5c91a1ab lib/Tools/fixgoal --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/Tools/fixgoal Thu Jun 18 10:48:21 1998 +0200 @@ -0,0 +1,35 @@ +#!/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