Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc Invoke MAKEDEV.local via $HOST_SH (default ${HOST_SH:=sh...
details: https://anonhg.NetBSD.org/src/rev/fd22c3208166
branches: trunk
changeset: 779611:fd22c3208166
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Tue Jun 05 13:20:01 2012 +0000
description:
Invoke MAKEDEV.local via $HOST_SH (default ${HOST_SH:=sh}) instead of
hardcoded "sh" to avoid unexpected errors on cross build hosts in
src/distrib/common/Makefile.makedev etc.
Should fix PR toolchain/46537, ok apb@
diffstat:
etc/MAKEDEV.tmpl | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r f5712b4fbc2e -r fd22c3208166 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl Tue Jun 05 10:58:56 2012 +0000
+++ b/etc/MAKEDEV.tmpl Tue Jun 05 13:20:01 2012 +0000
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: MAKEDEV.tmpl,v 1.155 2012/05/26 00:36:15 riz Exp $
+# $NetBSD: MAKEDEV.tmpl,v 1.156 2012/06/05 13:20:01 tsutsui Exp $
#
# Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -421,6 +421,7 @@
{
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/rescue
+ : ${HOST_SH:=sh}
: ${TOOL_MKNOD:=mknod}
: ${TOOL_MTREE:=mtree}
: ${TOOL_PAX:=pax}
@@ -2092,9 +2093,9 @@
umask 0
if [ -n "$count_nodes" ]; then
count_nodes=$((count_nodes + \
- $(linecount "$(sh "$0.local" $opts -s all)") ))
+ $(linecount "$("$HOST_SH" "$0.local" $opts -s all)") ))
else
- sh "$0.local" $opts all
+ "$HOST_SH" "$0.local" $opts all
fi
umask 077
fi
Home |
Main Index |
Thread Index |
Old Index