diff --git a/regress/sys/arch/m68k/060sp/Makefile b/regress/sys/arch/m68k/060sp/Makefile index 137dbc956c97..8d6d6d361c28 100644 --- a/regress/sys/arch/m68k/060sp/Makefile +++ b/regress/sys/arch/m68k/060sp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2003/10/26 07:25:35 lukem Exp $ +# $NetBSD: Makefile,v 1.13 2008/03/27 07:15:16 apb Exp $ NOMAN= # defined @@ -14,6 +14,7 @@ CLEANFILES+= itest.S ftest.S .SUFFIXES: .S .sa .sa.S: + TOOL_SED=${TOOL_SED:Q} \ ${HOST_SH} ${SPDIR}/asm2gas ${.IMPSRC} >${.TARGET} .PATH: ${SPDIR}/dist diff --git a/sys/arch/m68k/060sp/Makefile b/sys/arch/m68k/060sp/Makefile index 2a26c5cf6094..8e0a2d5c314c 100644 --- a/sys/arch/m68k/060sp/Makefile +++ b/sys/arch/m68k/060sp/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.8 2005/12/11 12:17:52 christos Exp $ +# $NetBSD: Makefile,v 1.9 2008/03/27 07:15:16 apb Exp $ -.include # for HOST_SH +.include # for HOST_SH, TOOL_SED # regenerate isp.S, fpsp.S, pfpsp.S @@ -11,6 +11,7 @@ .PATH: dist .sa.S: + TOOL_SED=${TOOL_SED:Q} \ ${HOST_SH} asm2gas ${.IMPSRC} >${.TARGET} all: isp.S fpsp.S pfpsp.S diff --git a/sys/arch/m68k/060sp/asm2gas b/sys/arch/m68k/060sp/asm2gas index d7a3d9662b05..d05928729ca8 100644 --- a/sys/arch/m68k/060sp/asm2gas +++ b/sys/arch/m68k/060sp/asm2gas @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: asm2gas,v 1.6 1998/08/15 03:51:31 mycroft Exp $ +# $NetBSD: asm2gas,v 1.7 2008/03/27 07:15:16 apb Exp $ # # Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -40,7 +40,9 @@ # This ugly script converts assembler code from Motorola's format to a # form that gas (MIT syntax) can digest. -cat $1 | sed -e ' +: ${TOOL_SED:=sed} + +cat "$1" | "${TOOL_SED}" -e ' # format canonicalization s/^#/|#/