#!/bin/sh
#
# create constants to figure out which version of Digital UNIX
# (or DEC OSF/1) we're building ppp for
#
FULL_VERSION=`uname -r`
MAJOR_VERSION=`echo $FULL_VERSION | cut -d. -f1 | cut -dV -f2`
MINOR_VERSION=`echo $FULL_VERSION | cut -d. -f2`
REVISION=`uname -v`

cat >ppp_osf.h <<XYZZY
/* Definitions for the exact version of Digital UNIX
 * (aka DEC OSF/1) we're building PPP for.
 *
 * This file is automatically generated.  DO NOT EDIT!
 */

XYZZY

echo "#define FULL_VERSION \"$FULL_VERSION\"" >>ppp_osf.h
echo "#define MAJOR_VERSION $MAJOR_VERSION" >>ppp_osf.h
echo "#define MINOR_VERSION $MINOR_VERSION" >>ppp_osf.h
echo "#define REVISION $REVISION" >>ppp_osf.h
