]> j8takagi.net Git Repository - YACASL2.git/commitdiff
doc/Makefileで、sedの記述を変更。いったん.html.bakファイルを作成してから削除
authorj8takagi <j8takagi@nifty.com>
Sat, 31 May 2014 07:02:05 +0000 (16:02 +0900)
committerj8takagi <j8takagi@nifty.com>
Sat, 31 May 2014 07:02:05 +0000 (16:02 +0900)
doc/Makefile

index 14703a348ea41648e68bc60a570c7cad40e0a6c2..2861845b758cc26a69b82cc9cc01dc13e277afa3 100644 (file)
@@ -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))