Branch: Tag:

2000-03-29

2000-03-29 17:09:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved portability of --version.

Rev: server/start:1.105

1:   #!/bin/sh   # - # $Id: start,v 1.104 2000/03/28 21:09:38 jhs Exp $ + # $Id: start,v 1.105 2000/03/29 17:09:11 grubba Exp $      pre="`echo \" $$ \" | sed -e 's/\(.........\)\(.*\)/\1/g'` :"   
21:   else :; 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' -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`" +  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   }