aboutsummaryrefslogtreecommitdiffstats
path: root/Source/scripts/deleteline
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-04-20 07:06:39 +0000
committerMartin Willi <martin@strongswan.org>2006-04-20 07:06:39 +0000
commit8bc96e08cb0c613edc35bcc6c3e8028b4db9e0aa (patch)
tree01f156479d22c765f0d99df0a5c4a07bcfe2c3f5 /Source/scripts/deleteline
parentec6582ccaa59e38cb83650c7c6b8312dc9768e87 (diff)
downloadstrongswan-8bc96e08cb0c613edc35bcc6c3e8028b4db9e0aa.tar.bz2
strongswan-8bc96e08cb0c613edc35bcc6c3e8028b4db9e0aa.tar.xz
- fixed log-to-syslog behavior
- added patch against strongswan-2.6.4
Diffstat (limited to 'Source/scripts/deleteline')
-rwxr-xr-xSource/scripts/deleteline9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/scripts/deleteline b/Source/scripts/deleteline
new file mode 100755
index 000000000..9f529dccc
--- /dev/null
+++ b/Source/scripts/deleteline
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+FILES=`find . -name '*.[ch]'`
+for FILE in $FILES
+do
+ TMP=${FILE}_tmp
+ sed "/$1/d" < $FILE > $TMP
+ mv $TMP $FILE
+done