Don't try to remove trailing newlines from shell variables via

constructs like ${var%$nl}.  Apparently this allows the Ubuntu Linux
/bin/sh (dash) to be used as a host shell during the build.
Patch from PR 39786 by Andy Shevchenko.
This commit is contained in:
apb 2008-10-23 20:21:57 +00:00
parent 76a01a44a6
commit 9577284633

View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# $NetBSD: mkinit.sh,v 1.4 2008/04/29 06:53:00 martin Exp $ # $NetBSD: mkinit.sh,v 1.5 2008/10/23 20:21:57 apb Exp $
# Copyright (c) 2003 The NetBSD Foundation, Inc. # Copyright (c) 2003 The NetBSD Foundation, Inc.
# All rights reserved. # All rights reserved.
@ -138,7 +138,7 @@ echo
echo "void" echo "void"
echo "init(void)" echo "init(void)"
echo "{" echo "{"
echo "${event_init%$nl}" echo "${event_init}"
echo "}" echo "}"
echo echo
echo echo
@ -151,7 +151,7 @@ echo
echo "void" echo "void"
echo "reset(void)" echo "reset(void)"
echo "{" echo "{"
echo "${event_reset%$nl}" echo "${event_reset}"
echo "}" echo "}"
echo echo
echo echo
@ -163,7 +163,7 @@ echo
echo "void" echo "void"
echo "initshellproc(void)" echo "initshellproc(void)"
echo "{" echo "{"
echo "${event_shellproc%$nl}" echo "${event_shellproc}"
echo "}" echo "}"
exec >&- exec >&-