#!/bin/sh
#   $Id: Newvers,v 2.2 2001/08/09 10:02:38 w Exp w $
# Vers.c file creator
#
version="2.1.7"

build=0
if [ -r build ]; then
    build=`cat build`
fi

#@ build++
((build = build + 1))
echo $build > build

date=`date +'%d %b %Y %T %z'`
version="Red $version.$build ($date)"

echo '#include "r.defs.h"'   > Vers.c
echo 'char *getvers() {'    >> Vers.c
echo '    return(DIAG('     >> Vers.c
echo "        \"$version\"" >> Vers.c
echo "        ,"            >> Vers.c
echo "        \"$version\"" >> Vers.c
echo "        )"            >> Vers.c
echo "    );"               >> Vers.c
echo '}'                    >> Vers.c


#############################################
#   $Log: Newvers,v $
#   Revision 2.2  2001/08/09 10:02:38  w
#   Legacy restriction removed: 32767 lines maximum at writing
#   editing result.
#   Fixes for ANSI-fication, "-fwritable-strings -Wtraditional"
#   options do not reqired anymore, and -Wall going well.
#   Some fixes "0 vs. NULL" pointers.
#   New undocumented feature: "arg: 0l rpl ..." work with
#   whole file now.
#   'register' type qualifyer on the way of removing.
#   dumpfsd() fixed to be functional (enabled by -DDEBUG).
#   [s]append(...,"") using improved a bit.
#   dumpfsd() activation changed to ^X.
#   Version numbering changed to major.minor.ext.build scheme.
#
