summaryrefslogtreecommitdiffstats
path: root/Makefile.upgrade
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-10-17 05:40:46 +0000
committerpeter <peter@FreeBSD.org>1998-10-17 05:40:46 +0000
commit837611366fed59dde4be8514f471fd249e45f658 (patch)
tree4c4000e6e1135414b0c9164cc16bce116dcab087 /Makefile.upgrade
parenta2bcaf5139f10b70e064bfccebc04348b41dd177 (diff)
downloadFreeBSD-src-837611366fed59dde4be8514f471fd249e45f658.zip
FreeBSD-src-837611366fed59dde4be8514f471fd249e45f658.tar.gz
3.0-RELEASE and now the post-release 3.0-CURRENT were being declared
'too old' to run ELF. Check the kernel version properly.
Diffstat (limited to 'Makefile.upgrade')
-rw-r--r--Makefile.upgrade15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile.upgrade b/Makefile.upgrade
index ba8018e..4e7b7ff 100644
--- a/Makefile.upgrade
+++ b/Makefile.upgrade
@@ -1,5 +1,5 @@
#
-# $Id: Makefile.upgrade,v 1.5 1998/09/09 06:02:31 jb Exp $
+# $Id: Makefile.upgrade,v 1.6 1998/09/23 01:46:25 jb Exp $
#
# This makefile contains rules for preforming upgrades that are outside
# the scope of the normal build world process.
@@ -15,7 +15,8 @@ MAKEOBJDIRPREFIX?=/usr/obj
# The installed operating system release gives us the hint as to whether
# we need to build a kernel too.
#
-INSTALLEDVERSION!=uname -r
+INSTALLEDVERSION!=sh ${.CURDIR}/tools/tools/upgrade/getosreldate.sh
+INSTALLEDNAME!=uname -r
#
# Upgrade the installed make to the current version using the installed
@@ -165,7 +166,7 @@ ${MAKEOBJDIRPREFIX}/do_aout_installworld :
@echo "--------------------------------------------------------------"
@/bin/sh -c "read -p \"Return to continue or Ctrl-C to abort: \" _e"
.endif
-.if ${INSTALLEDVERSION} != "3.0-BETA"
+.if ${INSTALLEDVERSION} < 300003
@echo
@echo "--------------------------------------------------------------"
@echo " Saving a copy of programs required to shut the system down"
@@ -191,10 +192,10 @@ ${MAKEOBJDIRPREFIX}/do_aout_installworld :
# directory as an obscure name just in case a reboot is required?
#
${MAKEOBJDIRPREFIX}/do_aout_kernel :
-.if ${INSTALLEDVERSION} == "3.0-BETA"
+.if ${INSTALLEDVERSION} >= 300003
@echo
@echo "--------------------------------------------------------------"
- @echo " You are already running 3.0-BETA, so a kernel build"
+ @echo " You are already running 3.0, so a kernel build"
@echo " is probably not required."
@echo "--------------------------------------------------------------"
.else
@@ -258,7 +259,7 @@ ${MAKEOBJDIRPREFIX}/do_set_objformat :
# and reboot.
#
${MAKEOBJDIRPREFIX}/do_install_kernel_reboot :
-.if ${INSTALLEDVERSION} == "3.0-BETA"
+.if ${INSTALLEDVERSION} >= 300003
@echo
@echo "--------------------------------------------------------------"
@echo " Your system has been updated to run elf by default!"
@@ -272,7 +273,7 @@ ${MAKEOBJDIRPREFIX}/do_install_kernel_reboot :
@echo "--------------------------------------------------------------"
@echo " Your system has been updated to run elf by default!"
@echo
- @echo " Since you are running ${INSTALLEDVERSION}, the kernel must"
+ @echo " Since you are running ${INSTALLEDNAME}, the kernel must"
@echo " be installed before the system is rebooted. You can type"
@echo " Ctrl-C to abort the kernel installation (at your own risk),"
@echo " or press return for the kernel to be installed and the"
OpenPOWER on IntegriCloud