From owner-freebsd-stable Tue Apr 10 17:11:15 2001 Delivered-To: freebsd-stable@freebsd.org Received: from spare.westbend.net (spare.westbend.net [216.106.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 1ED4337B422 for ; Tue, 10 Apr 2001 17:11:10 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: (from root@localhost) by spare.westbend.net (8.11.3/8.11.3) id f3B0Ejx27571 for freebsd-stable@freebsd.org; Tue, 10 Apr 2001 19:14:45 -0500 (CDT) (envelope-from hetzels@westbend.net) Date: Tue, 10 Apr 2001 19:14:45 -0500 (CDT) Message-Id: <200104110014.f3B0Ejx27571@spare.westbend.net> From: Scot.W.Hetel@spare.westbend.net To: FreeBSD-Stable@freebsd.org Subject: Release (patch included) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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