sh(1) happily accepts newlines inside double quotes just like in the
script itself:
$ sh -c "echo foo
> echo bar"
foo
bar
So no need to squash things into a single line as is required in make(1)
files.
OK? (for after release)
Index: install.sub
===================================================================
RCS file: /cvs/src/distrib/miniroot/install.sub,v
retrieving revision 1.1205
diff -u -p -r1.1205 install.sub
--- install.sub 19 Sep 2022 15:40:36 -0000 1.1205
+++ install.sub 20 Sep 2022 11:15:46 -0000
@@ -2927,10 +2927,10 @@ __EOT
mkdir -m 700 -p $_kernel_dir
tar -C $_kernel_dir -xzf $_kernel_dir.tgz $_kernel
rm -f $_kernel_dir.tgz
- chroot /mnt /bin/ksh -e -c "cd ${_kernel_dir#/mnt}/$_kernel; \
- make newbsd; \
- [ -f /etc/bsd.re-config ] && \
- config -e -c /etc/bsd.re-config -f bsd; \
+ chroot /mnt /bin/ksh -e -c "cd ${_kernel_dir#/mnt}/$_kernel
+ make newbsd
+ [ -f /etc/bsd.re-config ] &&
+ config -e -c /etc/bsd.re-config -f bsd
make newinstall"
) >/dev/null 2>&1 && echo " done." || echo " failed."
fi