4268
|
1 |
#!/bin/bash
|
|
2 |
#
|
|
3 |
# $Id$
|
|
4 |
#
|
|
5 |
# DESCRIPTION: fix references to obsolete Pure/Sequence structure
|
|
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 " the obsolete Pure/Sequence structure."
|
|
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 |
|
4508
|
35 |
find $SPECS -name \*.ML -print | xargs perl -w $ISABELLE_HOME/lib/scripts/fixseq.pl
|