X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=osf1%2Fmakevers;fp=osf1%2Fmakevers;h=4e84981345869fea9047ee098921e4b056ef0742;hp=0000000000000000000000000000000000000000;hb=b771dc419780bc703c617ffcd5995aa1ed866705;hpb=212b4a928b92d9f8f56192e390f0f0d7cf5c9efb diff --git a/osf1/makevers b/osf1/makevers new file mode 100644 index 0000000..4e84981 --- /dev/null +++ b/osf1/makevers @@ -0,0 +1,23 @@ +#!/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 <>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