aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-04-22 16:43:43 +0000
committerWarner Losh <imp@FreeBSD.org>2021-04-22 17:45:12 +0000
commit2183bfcce46bf9fe8315de3d7997d28db0a58c18 (patch)
tree14f7271fb987bc518ad7da2c84953a2b5b0d108b
parent2e5929a75634504d388cc04d24e6a558840e18cb (diff)
downloadsrc-2183bfcce46bf9fe8315de3d7997d28db0a58c18.tar.gz
src-2183bfcce46bf9fe8315de3d7997d28db0a58c18.zip
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
-rw-r--r--sys/conf/newvers.sh2
1 files changed, 1 insertions, 1 deletions
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)