a shellscipt to start a mini-httpd in place and a example config
authorChristian Thaeter <ct@pipapo.org>
Thu, 17 Jan 2008 17:01:10 +0000 (18:01 +0100)
committerChristian Thaeter <ct@pipapo.org>
Thu, 17 Jan 2008 17:01:10 +0000 (18:01 +0100)
mini-httpd.sh [new file with mode: 0755]
webgit.conf [new file with mode: 0644]

diff --git a/mini-httpd.sh b/mini-httpd.sh
new file mode 100755 (executable)
index 0000000..af988b8
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+rm minihttpd.log
+
+export CTGIT_CONFIG=./webgit.conf
+
+/usr/sbin/mini-httpd -c webgit -i minihttpd.pid -l minihttpd.log -p 8111 -d .
+
+function killtail
+{
+    kill $(cat tail.pid)
+}
+
+trap killtail SIGINT
+
+tail -F minihttpd.log &
+echo $! >tail.pid
+wait
+
+kill $(cat minihttpd.pid)
diff --git a/webgit.conf b/webgit.conf
new file mode 100644 (file)
index 0000000..1abb5c7
--- /dev/null
@@ -0,0 +1,7 @@
+# example config file, see src/options.h for more options
+# src/repo.h for git-config options [web] ...
+count 10
+repo /home/ct/src/ctgit
+repo /home/ct/src/ctgit/git
+repo /home/ct/src/libcwa
+repo /usr/src/linux-2.6