Source-Changes-HG archive

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

[src/trunk]: src use ${HOST_SH} instead of /bin/sh



details:   https://anonhg.NetBSD.org/src/rev/f676938be95b
branches:  trunk
changeset: 554218:f676938be95b
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Oct 26 03:50:07 2003 +0000

description:
use ${HOST_SH} instead of /bin/sh

diffstat:

 bin/ed/test/Makefile              |  13 ++++++++-----
 gnu/usr.bin/gcc3/backend/Makefile |   8 ++++----
 regress/sys/kern/ipf/Makefile     |  22 +++++++++++-----------
 regress/usr.bin/grep/Makefile     |   4 ++--
 regress/usr.bin/sort/Makefile     |   4 ++--
 5 files changed, 27 insertions(+), 24 deletions(-)

diffs (147 lines):

diff -r 2cb2a43a2dc0 -r f676938be95b bin/ed/test/Makefile
--- a/bin/ed/test/Makefile      Sun Oct 26 03:49:39 2003 +0000
+++ b/bin/ed/test/Makefile      Sun Oct 26 03:50:07 2003 +0000
@@ -1,7 +1,8 @@
-#      $NetBSD: Makefile,v 1.11 1995/03/21 09:05:14 cgd Exp $
+#      $NetBSD: Makefile,v 1.12 2003/10/26 03:50:07 lukem Exp $
 
-SHELL= /bin/sh
-ED=    ../obj/ed
+.include <bsd.own.mk>
+
+ED?=   ../obj/ed
 
 all: check
        @:
@@ -14,12 +15,14 @@
 build: mkscripts.sh
        @if [ -f errs.o ]; then :; else \
                echo "building test scripts for $(ED) ..."; \
-               $(SHELL) mkscripts.sh $(ED); \
+               ${HOST_SH} ${.CURDIR}/mkscripts.sh $(ED); \
        fi
 
 test: build ckscripts.sh
        @echo testing $(ED) ...
-       @$(SHELL) ckscripts.sh $(ED)
+       @${HOST_SH} ckscripts.sh $(ED)
 
 clean:
        rm -f *.ed *.red *.[oz] *~
+
+.include <bsd.prog.mk>
diff -r 2cb2a43a2dc0 -r f676938be95b gnu/usr.bin/gcc3/backend/Makefile
--- a/gnu/usr.bin/gcc3/backend/Makefile Sun Oct 26 03:49:39 2003 +0000
+++ b/gnu/usr.bin/gcc3/backend/Makefile Sun Oct 26 03:50:07 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2003/10/25 02:42:00 dmcmahill Exp $
+#      $NetBSD: Makefile,v 1.10 2003/10/26 03:50:07 lukem Exp $
 
 NOLINKLIB=     # defined
 NOLINT=                # defined
@@ -106,12 +106,12 @@
        TM_DEFINES="$(G_tm_defines)" \
        HEADERS="$(G_host_xm_file)" XM_DEFINES="$(G_host_xm_defines)" \
        TARGET_CPU_DEFAULT="$(G_target_cpu_default)" \
-       /bin/sh $(GNUHOSTDIST)/gcc/mkconfig.sh config.h
+       ${HOST_SH} $(GNUHOSTDIST)/gcc/mkconfig.sh config.h
 
 tm_p.h: Makefile
        TM_DEFINES="" \
        HEADERS="$(G_tm_p_file)" XM_DEFINES="" TARGET_CPU_DEFAULT="" \
-       /bin/sh $(GNUHOSTDIST)/gcc/mkconfig.sh tm_p.h
+       ${HOST_SH} $(GNUHOSTDIST)/gcc/mkconfig.sh tm_p.h
 
 CLEANFILES+=   options.h
 options.h: Makefile
@@ -126,7 +126,7 @@
        rm -rf .ab && \
        mkdir .ab && \
        (cd .ab && \
-               /bin/sh $(GNUHOSTDIST)/gcc/configure \
+               ${HOST_SH} $(GNUHOSTDIST)/gcc/configure \
                        --build=`${.CURDIR}/../../../dist/gcc/config.guess` \
                        --host=`${.CURDIR}/../../../dist/gcc/config.guess` \
                        --target=${MACHINE_GNU_PLATFORM} && \
diff -r 2cb2a43a2dc0 -r f676938be95b regress/sys/kern/ipf/Makefile
--- a/regress/sys/kern/ipf/Makefile     Sun Oct 26 03:49:39 2003 +0000
+++ b/regress/sys/kern/ipf/Makefile     Sun Oct 26 03:50:07 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2003/06/26 16:58:57 drochner Exp $
+#      $NetBSD: Makefile,v 1.6 2003/10/26 03:50:07 lukem Exp $
 #
 # (C)opyright 1993-1996 by Darren Reed.
 #
@@ -33,34 +33,34 @@
        @(cd ..; make ipftest; )
 
 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f14:
-       @/bin/sh ${.CURDIR}/dotest $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/dotest $@ ${.CURDIR}
 
 f12 f13:
-       @/bin/sh ${.CURDIR}/hextest $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/hextest $@ ${.CURDIR}
 
 f15 f16:
-       @/bin/sh ${.CURDIR}/mtest $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/mtest $@ ${.CURDIR}
 
 f17:
-       @/bin/sh ${.CURDIR}/mhtest $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/mhtest $@ ${.CURDIR}
 
 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12:
-       @/bin/sh ${.CURDIR}/itest $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/itest $@ ${.CURDIR}
 
 n1 n2 n3 n4 n5 n6 n7:
-       @/bin/sh ${.CURDIR}/nattest $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/nattest $@ ${.CURDIR}
 
 ni1 ni2 ni3 ni4 ni5:
-       @/bin/sh ${.CURDIR}/natipftest $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/natipftest $@ ${.CURDIR}
 
 in1 in2 in3 in4:
-       @/bin/sh ${.CURDIR}/intest $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/intest $@ ${.CURDIR}
 
 l1:
-       @/bin/sh ${.CURDIR}/logtest $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/logtest $@ ${.CURDIR}
 
 ipv6.1 ipv6.2:
-       @/bin/sh ${.CURDIR}/dotest6 $@ ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/dotest6 $@ ${.CURDIR}
 
 clean:
        /bin/rm -f f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f13 f12 f14 f15 f16 f17
diff -r 2cb2a43a2dc0 -r f676938be95b regress/usr.bin/grep/Makefile
--- a/regress/usr.bin/grep/Makefile     Sun Oct 26 03:49:39 2003 +0000
+++ b/regress/usr.bin/grep/Makefile     Sun Oct 26 03:50:07 2003 +0000
@@ -1,8 +1,8 @@
-#      $NetBSD: Makefile,v 1.1.1.1 2003/09/14 13:47:47 cjep Exp $
+#      $NetBSD: Makefile,v 1.2 2003/10/26 03:50:07 lukem Exp $
 
 NOMAN= # defined
 
 regress:
-       @/bin/sh ${.CURDIR}/greptests.sh ${.CURDIR}
+       @${HOST_SH} ${.CURDIR}/greptests.sh ${.CURDIR}
 
 .include <bsd.prog.mk>
diff -r 2cb2a43a2dc0 -r f676938be95b regress/usr.bin/sort/Makefile
--- a/regress/usr.bin/sort/Makefile     Sun Oct 26 03:49:39 2003 +0000
+++ b/regress/usr.bin/sort/Makefile     Sun Oct 26 03:50:07 2003 +0000
@@ -1,8 +1,8 @@
-#      $NetBSD: Makefile,v 1.5 2001/12/12 01:24:19 tv Exp $
+#      $NetBSD: Makefile,v 1.6 2003/10/26 03:50:07 lukem Exp $
 
 NOMAN=         # defined
 
 regress:
-       @/bin/sh ${.CURDIR}/stests
+       @${HOST_SH} ${.CURDIR}/stests
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index