Branch: Tag:

2000-02-29

2000-02-29 22:52:32 by Peter Bortas <zino@lysator.liu.se>

Fixed --version by telling it to use version.h

Rev: server/start:1.97

1:   #!/bin/sh   # - # $Id: start,v 1.96 2000/02/17 05:26:13 per Exp $ + # $Id: start,v 1.97 2000/02/29 22:52:32 peter Exp $      pre="`echo \" $$ \" | sed -e 's/\(.........\)\(.*\)/\1/g'` :"   
179:    ;;    '--version')    if [ -f base_server/roxen.pike ]; then -  VERSION="`sed <base_server/roxen.pike -e'/__roxen_version__/s/[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\)[^0-9]*/\1/p' -ed | head -1`" -  BUILD="`sed <base_server/roxen.pike -e'/__roxen_build__/s/[^0-9]*\([0-9][0-9]*\)[^0-9]*/\1/p' -ed | head -1`" +  VERSION="`sed <etc/include/version.h -e'/__roxen_version__/s/[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\)[^0-9]*/\1/p' -ed | head -1`" +  BUILD="`sed <etc/include/version.h -e'/__roxen_build__/s/[^0-9]*\([0-9][0-9]*\)[^0-9]*/\1/p' -ed | head -1`"    echo "Roxen $VERSION.$BUILD"    exit 0    else