Mercurial > hg > nnchat
diff Makefile.w32 @ 471:4e178dfd0cc3
Fix updating of documentation.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 May 2012 07:24:22 +0300 |
parents | b18b97d3e4f5 |
children | 52c56ada3816 |
line wrap: on
line diff
--- a/Makefile.w32 Sat May 26 07:07:30 2012 +0300 +++ b/Makefile.w32 Sat May 26 07:24:22 2012 +0300 @@ -45,8 +45,8 @@ DOC=$(BINPATH)/README.html update-doc: - @wget -O- http://www.tnsp.org/~ccr/nnchat/ | tr '\n' '§' | sed "s/<.-- BEGIN -->.*<.-- END -->//g" | tr '§' '\n' > $(DOC).new - @if diff -u $(DOC) $(DOC).new > /dev/null; then cp $(DOC).new $(DOC); fi + @wget -qO- http://www.tnsp.org/~ccr/nnchat/ | tr '\n' '§' | sed "s/<.-- BEGIN -->.*<.-- END -->//g" | tr '§' '\n' > "$(DOC).new" + @if diff -u "$(DOC)" "$(DOC).new" > /dev/null; then echo "No differences."; else cp "$(DOC).new" "$(DOC)"; fi $(DOC): update-doc