src/Tools/change_simp
author paulson
Wed, 21 Aug 1996 13:22:23 +0200
changeset 1933 8b24773de6db
parent 818 0b9ec0374bfd
permissions -rwxr-xr-x
Addition of message NS5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
     1
#! /bin/sh
818
0b9ec0374bfd Added comments and Id: marker.
lcp
parents: 9
diff changeset
     2
# $Id$
0b9ec0374bfd Added comments and Id: marker.
lcp
parents: 9
diff changeset
     3
#Assists in converting uses of the old simplifier (Isabelle-92 and earlier)
0b9ec0374bfd Added comments and Id: marker.
lcp
parents: 9
diff changeset
     4
#Usage:
0b9ec0374bfd Added comments and Id: marker.
lcp
parents: 9
diff changeset
     5
#    change_simp FILE1 ... FILEn
9
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
     6
#
818
0b9ec0374bfd Added comments and Id: marker.
lcp
parents: 9
diff changeset
     7
#Renames old versions of the files as FILE1~~ ... FILEn~~
9
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
     8
#
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
     9
for f in $*
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    10
do
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    11
echo $f. \ Backup file is $f~~
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    12
mv $f $f~~; sed -e '
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    13
s/\<ASM_SIMP_TAC\>/asm_simp_tac/g
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    14
s/\<SIMP_TAC\>/simp_tac/g
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    15
s/\<addrews\>/addsimps/g
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    16
s/addsplits \(\[[^]]*\]\)/setloop (split_tac \1)/g
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    17
s/addsplits/setloop  split_tac/g
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    18
s/\<setauto\>/setsolver/g
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    19
' $f~~ > $f
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    20
done
c1795fac88c3 make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
diff changeset
    21
echo Finished.