]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/replace.sh
some restyling ...
[helm.git] / matita / matita / contribs / lambdadelta / replace.sh
index fcc328a85b694da2ebb5259a597afd483dda4678..d077dcb594cb8bc2b4573a44455602477a53184f 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
-for SRC in `find grond_2 static_2 basic_2 apps_2 -name "*.ma" -or -name "*.tbl"`; do
-   sed "s!$1!$2!g" ${SRC} > ${SRC}.new
+for SRC in `find ground_2 static_2 basic_2 apps_2 -name "*.ma" -or -name "*.tbl"`; do
+   sed "/$1/s!$2!$3!g" ${SRC} > ${SRC}.new
    if [ ! -s ${SRC}.new ] || diff ${SRC} ${SRC}.new > /dev/null; 
       then rm -f ${SRC}.new; 
       else echo ${SRC}; mv -f ${SRC} ${SRC}.old; mv -f ${SRC}.new ${SRC};