From e2fd1f2e101486859899049147df7993c8042df7 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sat, 19 Jul 2008 00:25:12 +0200 Subject: Ensure cmp/mv/rm rules are correct and silent Make sure the "if cmp ... mv .. rm" in make rules are correct and useful, and the cmp is silent. --- src/Makefile-files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile-files b/src/Makefile-files index ef00d5f..490ff31 100644 --- a/src/Makefile-files +++ b/src/Makefile-files @@ -65,7 +65,7 @@ all-local-nbblib-pydoc: all-local-nbblib if test "$$rebuild" = "yes"; then \ echo $(PYDOC) -w "$${mod}"; \ ( cd src && $(PYDOC) -w "$${mod}" ); \ - if test -f "$$htmlfile" && cmp "src/$${mod}.html" "$$htmlfile"; \ + if test -f "$$htmlfile" && cmp "src/$${mod}.html" "$$htmlfile" > /dev/null; \ then rm -f "src/$${mod}.html"; \ else echo "INFO: Updating pydoc/$${mod}.html"; \ mv -f "src/$${mod}.html" "$$htmlfile"; fi; \ @@ -99,7 +99,7 @@ src/nbb: src/nbb.in $(nodist_nbblib_PYTHON) $(nbblib_PYTHON) Makefile $(GREP) '@[a-zA-Z0-9_]\{1,\}@' src/nbb.new; \ exit 1; \ fi - @if test -f src/nbb && cmp src/nbb.new src/nbb; \ + @if test -f src/nbb && cmp src/nbb.new src/nbb > /dev/null; \ then rm -f src/nbb.new; \ else mv -f src/nbb.new src/nbb; echo "INFO: Updating src/nbb"; fi @chmod +x src/nbb -- cgit