File:
[ELWIX - Embedded LightWeight unIX -] /
elwix /
config /
etc /
default /
chilli /
Attic /
wwwsh
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Jul 5 23:43:00 2011 UTC (13 years ago) by
misho
Branches:
misho
CVS tags:
start,
elwix1_9_mips,
elwix1_9,
elwix1_8,
elwix1_7,
elwix1_6,
elwix1_5,
elwix1_4,
Patch1,
ELWIX1_8,
ELWIX1_7,
ELWIX1_6,
ELWIX1_5
ELWIX project
1: #!/bin/sh
2: # (c) 2007 David Bird; Released under GPL.
3: # This simple script dispatches the <file>.chi embedded CGI scripts.
4: # If <file>.chi exists, and we have haserl, then we run "haserl file.chi"
5: # Otherwise, we look for <file>.chi.sh files to run as shell scripts.
6:
7: file=$(basename $1)
8: dir=$(dirname $1)
9: haserl=$(which haserl 2>/dev/null)
10: cd $dir
11:
12: # should be make a bit safer!
13:
14: if [ -z "$haserl" ]; then
15: if [ -e "$file.sh" ]; then
16: sh $file.sh
17: else
18: echo "<p>You need to install haserl to serve pages with this wwwsh script!</p>"
19: echo "<p>see <a href='http://haserl.sourceforge.net/'>http://haserl.sourceforge.net/</a></p>"
20: fi
21: exit
22: fi
23:
24: $haserl $file
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>