summaryrefslogtreecommitdiff
path: root/htdig-run
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2001-12-12 19:52:40 +0000
committerJonas Smedegaard <dr@jones.dk>2001-12-12 19:52:40 +0000
commitc81b7f986867db292d62a1757123723b5ef66518 (patch)
treea217cf2f481ab7b3099ef76b519a4cc8e1786096 /htdig-run
Initial revision
Diffstat (limited to 'htdig-run')
-rwxr-xr-xhtdig-run25
1 files changed, 25 insertions, 0 deletions
diff --git a/htdig-run b/htdig-run
new file mode 100755
index 0000000..c94f1cd
--- /dev/null
+++ b/htdig-run
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+htbin=/usr/bin
+source=/tmp
+search_host=search.jones.dk
+
+site=$1
+ext=$2
+conffile=/etc/htdig/$site.conf
+conf_target=/var/www/VIRTUAL/$search_host/htdig/conf/$site
+db_target=/var/local/lib/htdig/db/$site
+
+docopy() {
+# rcp $source/*.docdb $source/*.docs.index $source/*.words.gdbm ${search_host}:$target
+ rsync -e "ssh" $source/*.docdb $source/*.docs.index $source/*.words.gdbm ${search_host}:$db_target
+}
+
+mkdir -p $db_target
+test -e $conf_target || ln -s COMMON_en/ $conf_target
+#$htbin/htdig -i -c $conffile $ext
+$htbin/htdig -c $conffile $ext
+#$htbin/htmerge -c $conffile $ext
+$htbin/htmerge -c $conffile
+
+#docopy