summaryrefslogtreecommitdiff
path: root/replace_all
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-10-26 12:11:59 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-10-26 12:11:59 +0000
commitcd3a41758e3a246796de23b202994fe7b70f4675 (patch)
tree09e72f83f658d223324d8ec10b979b3b2045575b /replace_all
parenta7cb7fd544c25b3326a29f185044ac874af296d4 (diff)
downloadmpfr-cd3a41758e3a246796de23b202994fe7b70f4675.tar.gz
shell-script to replace xxx by yyy in all source files
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@788 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'replace_all')
-rwxr-xr-xreplace_all10
1 files changed, 10 insertions, 0 deletions
diff --git a/replace_all b/replace_all
new file mode 100755
index 000000000..42116f42b
--- /dev/null
+++ b/replace_all
@@ -0,0 +1,10 @@
+#!/bin/csh
+foreach f (*.c mpfr.h mpfr-impl.h mpfr.texi)
+ sed "s/$1/$2/g" $f > /tmp/$f
+ mv /tmp/$f $f
+end
+cd tests
+foreach f (*.c)
+ sed "s/$1/$2/g" $f > /tmp/$f
+ mv /tmp/$f $f
+end