Source-Changes-HG archive

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

[src/trunk]: src/etc Convert to POSIX specified usage of test (even though it...



details:   https://anonhg.NetBSD.org/src/rev/61e93f33b3cc
branches:  trunk
changeset: 433613:61e93f33b3cc
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Sep 23 23:12:21 2018 +0000

description:
Convert to POSIX specified usage of test (even though it would probably
have never been an issue here, it is trivial..., and one of the two
uses that needed changing was (and still is) commented out anyway).

diffstat:

 etc/weekly |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r b1132f38ecb4 -r 61e93f33b3cc etc/weekly
--- a/etc/weekly        Sun Sep 23 23:02:39 2018 +0000
+++ b/etc/weekly        Sun Sep 23 23:12:21 2018 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: weekly,v 1.31 2015/11/28 14:20:32 darcy Exp $
+#      $NetBSD: weekly,v 1.32 2018/09/23 23:12:21 kre Exp $
 #      from: @(#)weekly        8.2 (Berkeley) 1/2/94
 #
 
@@ -44,8 +44,8 @@
 # see if /usr/src exists and is local
 # before looking there for checked-out files
 
-#if [ -d /usr/src -a \
-#  -n "$(find -f /usr/src ! -fstype local -prune -or -type d -print -prune)" ];
+#if [ -d /usr/src ] &&
+# [ -n "$(find -f /usr/src ! -fstype local -prune -or -type d -print -prune)" ];
 #then
 #      echo ""
 #      echo "Looking for checked out files:"
@@ -81,7 +81,7 @@
 
 if checkyesno rebuild_mandb; then
        echo ""
-       if [ -f /etc/man.conf -a -x /usr/sbin/makemandb ]; then
+       if [ -f /etc/man.conf ] && [ -x /usr/sbin/makemandb ]; then
                echo "Rebuilding man page index:"
                (umask 022; nice -n 5 /usr/sbin/makemandb -f -Q)
        else



Home | Main Index | Thread Index | Old Index