]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambda_delta/replace.sh
Bug fix in inversion:
[helm.git] / matita / matita / contribs / lambda_delta / replace.sh
index 6caaacdb8c253bec2f43c104908f7a506a8bf6a1..33bf0e3a1b73300404f223287fd7ca45978ca54e 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/sh
-for V in `cat Make`; do
-   echo ${V}; sed "s/$1/$2/g" ${V} > ${V}.new
-   if diff ${V} ${V}.new > /dev/null; 
-      then rm -f ${V}.new; else mv -f ${V}.new ${V}; fi
+for MA in `find -name "*.ma"`; do
+   echo ${MA}; sed "s/$1/$2/g" ${MA} > ${MA}.new
+   if diff ${MA} ${MA}.new > /dev/null; 
+      then rm -f ${MA}.new; else mv -f ${MA}.new ${MA}; fi
 done
 
-unset V
+unset MA