From c5d36f6b4b0f90b217ae562deff6565796f2e035 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Sat, 5 Mar 2011 23:13:36 +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 mvを使う方法に変更 --- template/Define.mk | 2 ++ template/Test.mk | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/template/Define.mk b/template/Define.mk index ff5b4b0..b3c73af 100644 --- a/template/Define.mk +++ b/template/Define.mk @@ -17,6 +17,8 @@ MAKEFILE := Makefile # コマンド ###################################################################### +MV ?= mv + CP ?= cp CAT ?= cat diff --git a/template/Test.mk b/template/Test.mk index 8bc9828..11b8cbf 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 - $(CAT) $2 | ($(RM) $2; $(SED) -e "s%$(CURRDIR)%\$$PWD%g" >$2) + $(MV) $2 $2.tmp && $(SED) -e "s%$(CURRDIR)%\$$PWD%g" $2.tmp >$2 && $(RM) $2.tmp $(call rm_null,$3) endef -- 2.18.0