diff options
| author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-19 00:25:12 +0200 |
|---|---|---|
| committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-19 00:25:12 +0200 |
| commit | e2fd1f2e101486859899049147df7993c8042df7 (patch) | |
| tree | 8607371fba184e2dfe8761eabc46f7d9c7b41c93 /src | |
| parent | b6e7a354ed1ab53aebdb775a800156629744a065 (diff) | |
| download | nbb-e2fd1f2e101486859899049147df7993c8042df7.tar.gz nbb-e2fd1f2e101486859899049147df7993c8042df7.tar.xz nbb-e2fd1f2e101486859899049147df7993c8042df7.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile-files | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
