]> git.ozlabs.org Git - ppp.git/blobdiff - osf1/makevers
*** empty log message ***
[ppp.git] / osf1 / makevers
diff --git a/osf1/makevers b/osf1/makevers
new file mode 100644 (file)
index 0000000..4e84981
--- /dev/null
@@ -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 <<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