Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/sys_info Move back to a simple version string for sy...



details:   https://anonhg.NetBSD.org/src/rev/629e66b12a18
branches:  trunk
changeset: 826252:629e66b12a18
user:      agc <agc%NetBSD.org@localhost>
date:      Wed Aug 23 21:18:57 2017 +0000

description:
Move back to a simple version string for sys_info.  The way of using
CVS's $ Date $ expansion to calculate the date, whilst being more
accurate, runs into issues with reproducible builds, and alternate
repository software. Simplicity wins here.

Add yacc to the list of utilities to report on

diffstat:

 usr.bin/sys_info/sys_info.sh |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 4ac6d0b78ba7 -r 629e66b12a18 usr.bin/sys_info/sys_info.sh
--- a/usr.bin/sys_info/sys_info.sh      Wed Aug 23 19:47:39 2017 +0000
+++ b/usr.bin/sys_info/sys_info.sh      Wed Aug 23 21:18:57 2017 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: sys_info.sh,v 1.10 2017/08/23 19:18:38 kre Exp $
+# $NetBSD: sys_info.sh,v 1.11 2017/08/23 21:18:57 agc Exp $
 
 # Copyright (c) 2016 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -26,8 +26,7 @@
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 
-SYS_INFO_VERSION=$( D="\$Date: 2017/08/23 19:18:38 $"; set -f;
-                       IFS=" /"; set -- $D; printf %s "$2$3$4" )
+SYS_INFO_VERSION=20170823
 
 PATH=$(sysctl -n user.cs_path)
 export PATH
@@ -225,6 +224,9 @@
        xz)
                run "xz --version | awk '{ print \$1 \"-\" \$4; exit }'"
                $all || return 0 ;&
+       yacc)
+               run "yacc -V | sed -e 's| ||g'"
+               $all || return 0 ;&
 
        '')                     # never matches
                ;;              # but terminates ;& sequence



Home | Main Index | Thread Index | Old Index