]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/replace.sh
update in static_2
[helm.git] / matita / matita / contribs / lambdadelta / replace.sh
index fcc328a85b694da2ebb5259a597afd483dda4678..f72850165f08f0cc75658d6f020058b4b0436efd 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 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};