summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-05-14 21:12:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-05-14 21:12:15 +0000
commit93b6bd6119bf5f2e15dcee8567d935377bf7ca1b (patch)
tree01c4535148893eb7f20b216ffdb0458b8acf3db5
parent429683dbad318a6a8dc0a454cfd27b29422a22ed (diff)
Add VERSION_MAJOR and VERSION_MINOR. Currently assumes release
is ${major}${minor} not ${major}${minor}${teeny}.
-rw-r--r--distrib/miniroot/install.sub6
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 20cd523ac66..df68ab24ed0 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.23 1997/05/14 17:08:11 millert Exp $
+# $OpenBSD: install.sub,v 1.24 1997/05/14 21:12:14 millert Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -41,7 +41,9 @@
ROOTDISK="" # filled in below
VERSION=
-export VERSION
+VERSION_MAJOR=$(( $VERSION / 10 ))
+VERSION_MINOR=$(( $VERSION % 10 ))
+export VERSION VERSION_MAJOR VERSION_MINOR
ALLSETS="base etc misc comp text man game" # default install sets
UPGRSETS="base misc comp text man game" # default upgrade sets