src/FOLP/change
author kleing
Sun, 09 Dec 2001 14:36:14 +0100
changeset 12432 90b0fc84f8d9
parent 0 a5a9c433f639
permissions -rwxr-xr-x
HOL/IMP converted to Isar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
#! /bin/sh
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
# Usage:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
#    expandshort FILE1 ... FILEn
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
#  leaves previous versions as XXX~~
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
for f in $*
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
do
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
echo Expanding shorthands in $f. \ Backup file is $f~~
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
mv $f $f~~; sed -e '
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
s/PFOL/FOLP/g
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
s/PIFOL/IFOLP/g
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
s/pfol/folp/g
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
s/pifol/ifolp/g
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
' $f~~ > $f
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
done
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
echo Finished.