]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambda_delta/replace.sh
refactoring ...
[helm.git] / matita / matita / contribs / lambda_delta / replace.sh
diff --git a/matita/matita/contribs/lambda_delta/replace.sh b/matita/matita/contribs/lambda_delta/replace.sh
new file mode 100644 (file)
index 0000000..6caaacd
--- /dev/null
@@ -0,0 +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
+done
+
+unset V