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 [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to