From 2880f277811d723fc7984d867a11529bf733cb38 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Sat, 5 Mar 2011 08:56:00 +0900 Subject: [PATCH] =?utf8?q?linux=E3=81=A7sed=E3=82=B3=E3=83=9E=E3=83=B3?= =?utf8?q?=E3=83=89=E3=81=AE=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=8C=E7=99=BA?= =?utf8?q?=E7=94=9F=E3=81=99=E3=82=8B=E7=8F=BE=E8=B1=A1=E3=82=92=E5=9B=9E?= =?utf8?q?=E9=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit sedの-iコマンド指定方法が、BSD版とGNU版で異なることが原因。-iコマンドは使わないことで現象を回避 --- template/Test.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/Test.mk b/template/Test.mk index 11d4065..8bc9828 100644 --- a/template/Test.mk +++ b/template/Test.mk @@ -49,7 +49,7 @@ define exec_cmd if test ! -x $1; then $(CHMOD) u+x $1; fi ./$1 >>$2 2>$3 if test -s $3; then $(CAT) $3 >>$2; fi - $(SED) -i '' -e "s%$(CURRDIR)%\$$PWD%g" $2 + $(CAT) $2 | ($(RM) $2; $(SED) -e "s%$(CURRDIR)%\$$PWD%g" >$2) $(call rm_null,$3) endef -- 2.18.0