equal
deleted
inserted
replaced
|
1 #!/bin/bash |
|
2 # |
|
3 # $Id$ |
|
4 # |
|
5 # DESCRIPTION: replace goal(w) commands by implicit versions Goal(w) |
|
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 .ML files, replacing goal(w)" |
|
18 echo " commands by implicit versions Goal(w)" |
|
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 find $SPECS -name \*.ML -print | xargs perl -w $ISABELLE_HOME/lib/scripts/fixgoal.pl |