The ${BUILDKERNELS:[2..-1]} appears to produce a non zero result for
authorglebius <glebius@FreeBSD.org>
Wed, 2 Sep 2015 15:42:14 +0000 (15:42 +0000)
committerglebius <glebius@FreeBSD.org>
Wed, 2 Sep 2015 15:42:14 +0000 (15:42 +0000)
commit4eaf6a94f872459e47e9f199f7173c340295f794
tree77f8b3e5f4b1a029a41ac6f906cc2f7e36ace949
parent7eb56dcb0018af571684fb3b0723db0e84bdba5e
The ${BUILDKERNELS:[2..-1]} appears to produce a non zero result for
a one word variable, which is quite unexpected from documentation.
So, to avoid double installation of a single kernel, protect the extra
kernels loop with ${BUILDKERNELS:[#]} > 1 conditional.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Makefile.inc1