#! /bin/sh
# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.

# $Header: newvers.sh 1.4 89/10/26 $
#
# newvers.sh
#	Generates version string for information when system boots.
#

# $Log:	newvers.sh,v $

if [ ! -r version ]; then echo 0 > version; fi
touch version
DATE=`date`
awk "	{	version = \$1 + 1; } 
END	{	printf \"#define VERS \\\"%s\\\"\n\", \"V1.2.0\" > \"vers.h\";
		printf \"char version[] = \\\"DYNIX/ptx(R) V1.2.0 #%d \", version >> \"vers.h\";
		printf \"%d\n\", version > \"version\"; }" < version
echo "($USER): $DATE"'\\n";' >> vers.h
