summaryrefslogtreecommitdiffstats
path: root/debian/htdig/htdig-3.2.0b6/test/set_attr
diff options
context:
space:
mode:
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/test/set_attr')
-rw-r--r--debian/htdig/htdig-3.2.0b6/test/set_attr9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/test/set_attr b/debian/htdig/htdig-3.2.0b6/test/set_attr
new file mode 100644
index 00000000..d283a8c9
--- /dev/null
+++ b/debian/htdig/htdig-3.2.0b6/test/set_attr
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+conf=conf/htdig.conf.tmp
+if grep $1 $conf > /dev/null ; then
+ mv $conf tmp_conf
+ sed "s@$1.*@$1: $2@" < tmp_conf > $conf
+else
+ echo "$1: $2" >> $conf
+fi