Date: Thu, 2 Oct 1997 15:07:13 -0500 From: "Scot W. Hetzel" <hetzels@aol.com> To: "Stable" <stable@FreeBSD.ORG>, "Current" <current@FreeBSD.ORG> Subject: CTM patch level added to newvers.sh Message-ID: <01bccf6e$c649aa80$0400000a@hetzels>
next in thread | raw e-mail | index | archive | help
I am currently tracking 2.2-STABLE and use the following patch to newvers.sh to have my kernel indicate what CTM patch was used to create it. example: Copyright (c) 1992-1997 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 2.2-STABLE (0448) #0: Fri Sep 26 21:16:21 CDT 1997 ^^^^^^^ Last CTM update applied 0448. The CTM value will only be shown if the user is using STABLE or CURRENT and has the .ctm_status file in the src directory. Could the attched patch be applied to the src tree for both CURRENT's and STABLE's newvers.sh? Also, is there a better way of locating the .ctm_status file (look at variable S1)? Thanks, Scot ------cut here---- *** /sys/conf/newvers.sh.orig Thu Jun 5 18:01:42 1997 --- /sys/conf/newvers.sh Thu Oct 2 14:55:05 1997 *************** *** 39,47 **** --- 39,62 ---- BRANCH="STABLE" RELEASE="${REVISION}-${BRANCH}" SNAPDATE="" + + #Location of .ctm_status file + S1="../../.." + CTM_STATUS="${S1}/.ctm_status" + if [ "X${SNAPDATE}" != "X" ]; then RELEASE="${RELEASE}-${SNAPDATE}" fi + + #Add CTM patch level for the STABLE or CURRENT Branches + #Only if we are using CTM (.ctm_status exists in the source directory) + if [ "${BRANCH}" = "STABLE" ] || [ "${BRANCH}" = "CURRENT" ]; then + if [ -f ${CTM_STATUS} ]; then + sCTM=`awk '{ printf "%04d", $2 }' ${CTM_STATUS}` + RELEASE="${RELEASE} (${sCTM})" + fi + fi + VERSION="${TYPE} ${RELEASE}" RELDATE="222001" ------cut here----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01bccf6e$c649aa80$0400000a>