Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.108 2000/03/31 16:45:03 leif Exp $ + # $Id: start,v 1.109 2000/04/01 12:26:30 grubba Exp $      pre="`echo \" $$ \" | sed -e 's/\(.........\)\(.*\)/\1/g'` :"      cd `dirname $0`      # Can be set with '--config-dir=DIR'   DIR=../configurations/   LOGDIR=../logs/   FILES="default"   program=base_server/roxenloader.pike   extra_args=""   VARDIR=../var/   LOCALDIR=../local/      # Make LOCALDIR an absolute path   if test -d $LOCALDIR/.; then    LOCALDIR=`cd $LOCALDIR; pwd`   else :; fi    -  + if test -d $VARDIR/.; then :; else +  echo "Creating directory $VARDIR/." +  mkdir $VARDIR || exit 1 + fi +    roxen_version() {    VERSION="`sed <etc/include/version.h -e '/__roxen_version__/s/[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\)[^0-9]*/\1/p' -n | head -1`"    BUILD="`sed <etc/include/version.h -e '/__roxen_build__/s/[^0-9]*\([0-9][0-9]*\)[^0-9]*/\1/p' -n | head -1`"    echo $VERSION.$BUILD   }      pcdir="$VARDIR/`roxen_version`/precompiled/`uname -m`.`uname -r`"   old_roxen_defines="$pcdir/old_roxen_defines"   ./mkdir -p $pcdir