aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/scripts/replace
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon/scripts/replace')
-rwxr-xr-xsrc/charon/scripts/replace9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/charon/scripts/replace b/src/charon/scripts/replace
new file mode 100755
index 000000000..adfc8e09a
--- /dev/null
+++ b/src/charon/scripts/replace
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+FILES=`find . -name '*.[ch]'`
+for FILE in $FILES
+do
+ TMP=${FILE}_tmp
+ sed "s/$1/$2/g" < $FILE > $TMP
+ mv $TMP $FILE
+done