Module Name: src
Committed By: martin
Date: Tue Oct 15 15:21:06 UTC 2024
Modified Files:
src/sys/conf [netbsd-10]: newvers_stand.sh
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #984):
sys/conf/newvers_stand.sh: revision 1.11
use TOOL_AWK and quote.
To generate a diff of this commit:
cvs rdiff -u -r1.9.44.1 -r1.9.44.2 src/sys/conf/newvers_stand.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/conf/newvers_stand.sh
diff -u src/sys/conf/newvers_stand.sh:1.9.44.1 src/sys/conf/newvers_stand.sh:1.9.44.2
--- src/sys/conf/newvers_stand.sh:1.9.44.1 Sat Oct 12 11:16:04 2024
+++ src/sys/conf/newvers_stand.sh Tue Oct 15 15:21:06 2024
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: newvers_stand.sh,v 1.9.44.1 2024/10/12 11:16:04 martin Exp $
+# $NetBSD: newvers_stand.sh,v 1.9.44.2 2024/10/15 15:21:06 martin Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -36,6 +36,7 @@
# sh ${S}/conf/newvers_stand.sh [-dkn] [-D <date>] [-m <machine>] VERSION_TEMPLATE [EXTRA_MSG]
DATE=${TOOL_DATE:-date}
+AWK=${TOOL_AWK:-awk}
cwd=$(dirname "$0")
@@ -60,9 +61,9 @@ done
shift $(expr ${OPTIND} - 1)
-r=$(awk -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' "$1")
+r=$("${AWK}" -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' "$1")
shift
-t=$(LC_ALL=C TZ=UTC ${DATE} ${dateargs})
+t=$(LC_ALL=C TZ=UTC "${DATE}" ${dateargs})
if ${add_date}; then
echo "const char bootprog_rev[] = \"${r} (${t})\";" > vers.c