diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-10-26 12:11:59 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-10-26 12:11:59 +0000 |
commit | cd3a41758e3a246796de23b202994fe7b70f4675 (patch) | |
tree | 09e72f83f658d223324d8ec10b979b3b2045575b /replace_all | |
parent | a7cb7fd544c25b3326a29f185044ac874af296d4 (diff) | |
download | mpfr-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-x | replace_all | 10 |
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 |