Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2001 19:14:45 -0500 (CDT)
From:      Scot.W.Hetel@spare.westbend.net
To:        FreeBSD-Stable@freebsd.org
Subject:   Release (patch included)
Message-ID:  <200104110014.f3B0Ejx27571@spare.westbend.net>

next in thread | raw e-mail | index | archive | help
Since, noone supplied a patch that will help users to find the
information when the tag changes from -STABLE/-CURRENT to -BETA
or -RC.  I created a patch to newvers.sh that will display an
informitive message.

This patch changes the version string to include a message
that can be used to inform the admin on where to get more
information on the meaning of RC, BETA, & CURRENT.

Scot W. Hetzel

--- newvers.sh.orig	Wed Mar 21 15:06:19 2001
+++ newvers.sh	Tue Apr 10 19:11:54 2001
@@ -84,13 +84,27 @@
 	echo 0 > version
 fi
 
+if [ "${BRANCH}" = "RC" -o "${BRANCH}" = "BETA" ] ; then
+	WARNING="\\n    See the ${TYPE} Handbook for the meaning of \`${BRANCH}'"
+	WARNING="${WARNING}\\n    [place url to handbook/faq explaining the meaning of ${BRANCH} here]"
+	#WARNING="${WARNING}\\n    http://www.freebsd.org/handbook/current-stable.html#${BRANCH}"
+	WARNING="${WARNING}\\n    http://www.freebsd.org/FAQ/preface.html#STABLE"
+fi
+
+if [ "${BRANCH}" = "CURRENT" ]; then
+	WARNING="\\n    ${BRANCH} is a development version of ${TYPE}."
+	WARNING="${WARNING}\\n    ${BRANCH} is not recommened for use on production systems."
+	WARNING="${WARNING}\\n    http://www.freebsd.org/handbook/current-stable.html#AEN12985"
+	WARNING="${WARNING}\\n    http://www.freebsd.org/FAQ/preface.html#CURRENT"
+fi
+
 touch version
 v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date`
 cat << EOF > vers.c
 $COPYRIGHT
 char sccspad[32 - 4 /* sizeof(sccs) */] = { '\\0' };
 char sccs[4] = { '@', '(', '#', ')' };
-char version[] = "${VERSION} #${v}: ${t}\\n    ${u}@${h}:${d}\\n";
+char version[] = "${VERSION} #${v}: ${t}\\n    ${u}@${h}:${d}${WARNING}\\n";
 char ostype[] = "${TYPE}";
 char osrelease[] = "${RELEASE}";
 int osreldate = ${RELDATE};

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104110014.f3B0Ejx27571>