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 also add tzdata versioning information



details:   https://anonhg.NetBSD.org/src/rev/59a1a7d21b19
branches:  trunk
changeset: 355915:59a1a7d21b19
user:      agc <agc%NetBSD.org@localhost>
date:      Mon Aug 21 19:51:32 2017 +0000

description:
also add tzdata versioning information

diffstat:

 usr.bin/sys_info/sys_info.sh |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 95c590222c7e -r 59a1a7d21b19 usr.bin/sys_info/sys_info.sh
--- a/usr.bin/sys_info/sys_info.sh      Mon Aug 21 19:36:57 2017 +0000
+++ b/usr.bin/sys_info/sys_info.sh      Mon Aug 21 19:51:32 2017 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: sys_info.sh,v 1.6 2017/08/21 19:36:57 agc Exp $
+# $NetBSD: sys_info.sh,v 1.7 2017/08/21 19:51:32 agc Exp $
 
 # Copyright (c) 2016 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -141,6 +141,11 @@
                        echo "tcsh: not found"
                fi
                ;;
+       tzdata)
+               if [ -f /usr/share/zoneinfo/TZDATA_VERSION ]; then
+                       cat /usr/share/zoneinfo/TZDATA_VERSION
+               fi
+               ;;
        unbound)
                if which_prog unboundpath unbound-control; then
                        ${unboundpath} -h | awk '/^Version/ { print "unbound-" $2 }'
@@ -174,7 +179,7 @@
 if ${all}; then
        args='awk bind bzip2 calendar ftpd g++ gcc grep gzip httpd netbsd netpgp'
        args="${args} netpgpverify ntp openssl sqlite ssh sshd sys_info tcsh"
-       args="${args} unbound xz"
+       args="${args} tzdata unbound xz"
 else
        args=$(echo $@ | tr ' ' '\n' | sort | uniq)
 fi



Home | Main Index | Thread Index | Old Index