From: j8takagi Date: Sat, 31 May 2014 07:02:05 +0000 (+0900) Subject: doc/Makefileで、sedの記述を変更。いったん.html.bakファイルを作成してから削除 X-Git-Tag: v0.2p29~6 X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=commitdiff_plain;h=e5a628bc94373e55be537b7537a32fb38abbf388 doc/Makefileで、sedの記述を変更。いったん.html.bakファイルを作成してから削除 --- diff --git a/doc/Makefile b/doc/Makefile index 14703a3..2861845 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -16,10 +16,10 @@ all: base htmls pdf info: yacasl2.info html: $(addsuffix .html,$(DOCS)) - for f in $^; do $(SED) -i '' -e 's!dir\.html#Top!\.\./!g' $$f; done + for f in $^; do $(SED) -i .bak -e 's!dir\.html#Top!\.\./!g' $$f && $(RM) $$f.bak; done htmls: $(addsuffix _html,$(DOCS)) - for d in $^; do $(SED) -i '' -e 's!\.\./dir/index\.html!\.\./\.\./!g' $$d/index.html; done + for d in $^; do $(SED) -i .bak -e 's!\.\./dir/index\.html!\.\./\.\./!g' $$d/index.html && $(RM) $$d/index.html.bak; done pdf: $(addsuffix .pdf,$(DOCS))