Roxen.git / server / bin / functions

version» Context lines:

Roxen.git/server/bin/functions:1:   # -*- sh -*-   # Support functions for the startscript and some other scripts.   # - # $Id: functions,v 1.21 2012/01/03 13:43:14 marty Exp $ + # $Id$   #      # Default number of generations for log rotation.   GENERATIONS=5   export GENERATIONS      rotate () {    b="$GENERATIONS";    while test "$b" -gt 1; do    a=`expr "$b" - 1`;
Roxen.git/server/bin/functions:54:    done    export CLASSPATH   }      dp() {    if [ "x$SILENT_START" = "xy" ] ; then    :    elif [ "x$self_test" = "xy" ]; then    echo "$@" >&2    else -  echo " :" "$@" >&2 +  echo " :" "$@" >&2    fi   }      dp_no_nl() {    if [ "x$SILENT_START" = "xy" ] ; then    :    elif [ "x$self_test" = "xy" ]; then    echo "$@" | tr -d '   ' >&2    else -  echo " :" "$@" | tr -d ' +  echo " :" "$@" | tr -d '   ' >&2    fi   }      roxen_version() {    VERSION="`sed <etc/include/version.h -e '/roxen_ver/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`"    if [ -f "RELEASE" ] ; then    RELEASE="`head -1 <RELEASE`"    else
Roxen.git/server/bin/functions:152:    dp "No pike binary found. Aborting."    exit 1    fi       if [ ! -f "$pike" ] ; then    dp "No pike binary found. Aborting."    exit 1    fi       # Check pike version if we're targeting something older than the latest. - # if [ x`"$pike" -e 'if (__VERSION__ > 7.4) write("new");'` = "xnew" ]; then - # DEFINES="-V7.4 $DEFINES" + # if [ x`"$pike" -e 'if (__VERSION__ > 8.0) write("new");'` = "xnew" ]; then + # DEFINES="-V8.0 $DEFINES"   # export DEFINES   # fi       PIKE="$pike"    export PIKE   }      raise_limit() {    if ulimit -n unlimited 2>/dev/null ; then    :