summaryrefslogtreecommitdiff
path: root/journal.cgi
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2007-09-30 00:52:21 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2007-09-30 00:52:21 +0200
commitb33482c0608751d19c40bb724cc7dfff16c2cb0d (patch)
tree91fecbcd2a42e6b513e0e10a79c1d2566f169e31 /journal.cgi
parent033516172c84bc772c7deeea8875445b4e7d48a2 (diff)
Make journal.cgi usable on NearlyFreeSpeech.NET.
darcs-hash:01e7640968def891b020f6e5cd216a605c474ce9
Diffstat (limited to 'journal.cgi')
-rwxr-xr-xjournal.cgi10
1 files changed, 9 insertions, 1 deletions
diff --git a/journal.cgi b/journal.cgi
index a23b433..675d117 100755
--- a/journal.cgi
+++ b/journal.cgi
@@ -1,3 +1,11 @@
#! /bin/sh
DIR=`dirname "$0"`
-exec clisp -M "$DIR/lispinit.mem.gz" "$DIR/run.lisp" "$@"
+if test -e /home/mulk; then
+ # MST-plus.
+ LISPINIT_DIR="$DIR"
+else
+ # NearlyFreeSpeech.NET.
+ LISPINIT_DIR=/home/protected/journal
+fi
+
+exec clisp -M "$LISPINIT_DIR/lispinit.mem.gz" "$DIR/run.lisp" "$@"