equal
deleted
inserted
replaced
|
1 #!/bin/bash |
|
2 # |
|
3 # $Id$ |
|
4 # |
|
5 # DESCRIPTION: fix references to implicit claset and simpset |
|
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, fixing references to" |
|
18 echo " implicit claset and simpset:" |
|
19 echo |
|
20 echo " FIXME" |
|
21 echo |
|
22 echo " Renames old versions of FILES by appending \"~~\"." |
|
23 echo |
|
24 exit 1 |
|
25 } |
|
26 |
|
27 |
|
28 ## process command line |
|
29 |
|
30 [ $# -eq 0 -o "$1" = "-?" ] && usage |
|
31 |
|
32 SPECS="$@"; shift $# |
|
33 |
|
34 |
|
35 ## main |
|
36 |
|
37 PERL=$(type -path perl) |
|
38 if [ -z $PERL ]; then |
|
39 echo "$PRG fatal error: no perl!?" |
|
40 else |
|
41 find $SPECS -name \*.ML -print | xargs $PERL $ISABELLE_HOME/lib/scripts/fixclasimp.pl |
|
42 fi |