Source-Changes-HG archive

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

[src/trunk]: src/etc Install the missing sh syntax element in the MKDEBUGKERN...



details:   https://anonhg.NetBSD.org/src/rev/20cf2e0e37fc
branches:  trunk
changeset: 359430:20cf2e0e37fc
user:      kre <kre%NetBSD.org@localhost>
date:      Wed Jan 05 01:46:28 2022 +0000

description:
Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well.   Not today, or not by me anyway.

diffstat:

 etc/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3d1648fac40d -r 20cf2e0e37fc etc/Makefile
--- a/etc/Makefile      Tue Jan 04 22:10:08 2022 +0000
+++ b/etc/Makefile      Wed Jan 05 01:46:28 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.457 2022/01/02 20:09:03 christos Exp $
+#      $NetBSD: Makefile,v 1.458 2022/01/05 01:46:28 kre Exp $
 #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -626,7 +626,7 @@
                                [ -z "$${newest}" -o $${ks} \
                                    -nt "$${newest}" ] && newest=$${ks}; \
                                [ ${MKDEBUGKERNEL} = "no" -o \
-                                    ! -f $${ks}.gdb ]  continue; \
+                                    ! -f $${ks}.gdb ] && continue; \
                                kernels="$${kernels} $${ks}.gdb"; \
                        done; \
                done; \



Home | Main Index | Thread Index | Old Index