Fix stringsource parsing to that apostrophes don't count as quotes.
[schedulator.git] / run-cgi
blob0fc0b79591bf2e59620a02a72343ee587d7445f5
1 #!/bin/bash
3 #echo "Content-type: text/html"
4 #echo
5 #exec 2>&1
7 N="$(basename "$0")"
8 N="$(basename "$N" .cgi)"
9 export MONO_SHARED_DIR=/tmp/monodat$UID
10 [ ! -d $MONO_SHARED_DIR ] && mkdir -p $MONO_SHARED_DIR
12 if [ -f Makefile ]; then
13 make -q "$N".exe || echo "<b>WARNING: $N is out of date!</b><p>"
16 exec mono --debug ./"$N".exe "$@"
17 #exec strace -s 10240 -o /tmp/xx.$$.out mono --debug ./"$N".exe "$@"