The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=2183bfcce46bf9fe8315de3d7997d28db0a58c18

commit 2183bfcce46bf9fe8315de3d7997d28db0a58c18
Author:     Warner Losh <i...@freebsd.org>
AuthorDate: 2021-04-22 16:43:43 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2021-04-22 17:45:12 +0000

    newvers.sh: better regexp for the FreeBSD_version line
    
    Tested with:            cirrus-ci 
https://cirrus-ci.com/build/6012323274948608
    Reviewed by:            emaste@, rgrimes@
    Sponsored by:           Netflix
    Differential Revision:  https://reviews.freebsd.org/D29869
---
 sys/conf/newvers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 847c01186aeb..495d9c0e862e 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -65,7 +65,7 @@ if [ -z "${SYSDIR}" ]; then
     SYSDIR=$(dirname $0)/..
 fi
 
-RELDATE=$(awk '/__FreeBSD_version.*propagated to newvers/ {print $3}' 
${PARAMFILE:-${SYSDIR}/sys/param.h})
+RELDATE=$(awk '/^\#define[[:space:]]*__FreeBSD_version/ {print $3}' 
${PARAMFILE:-${SYSDIR}/sys/param.h})
 
 if [ -r "${SYSDIR}/../COPYRIGHT" ]; then
        year=$(sed -Ee '/^Copyright .* The FreeBSD 
Project/!d;s/^.*1992-([0-9]*) .*$/\1/g' ${SYSDIR}/../COPYRIGHT)
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to