diff options
author | Alejandro Colomar <alx@kernel.org> | 2022-12-17 14:27:52 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2022-12-17 14:27:52 +0100 |
commit | b1fb3c46dff21ff66d713a757ba8975e7fe6e56d (patch) | |
tree | 0d94ac974ecb6442042ffa4bcb21a4cbacb41a0f | |
parent | 3c125f04f506681c1f05d8e97b7463914cb1acec (diff) |
lint-man.mk: Fix bogus stderr redirection
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | lib/lint-man.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lint-man.mk b/lib/lint-man.mk index 7bb8eaa1e..8e66291cc 100644 --- a/lib/lint-man.mk +++ b/lib/lint-man.mk @@ -99,20 +99,20 @@ $(_LINT_man_tbl): $(_LINTDIR)/%.lint-man.tbl.touch: $(MANDIR)/% | $$(@D)/. $(info LINT (tbl) $@) if $(GREP) -q '^\.TS$$' $< && ! $(HEAD) -n1 $< | $(GREP) -q '\\" t$$'; \ then \ - 2>&1 $(ECHO) "$<:1: missing '\\\" t' comment:"; \ - 2>&1 $(HEAD) -n1 <$<; \ + >&2 $(ECHO) "$<:1: missing '\\\" t' comment:"; \ + >&2 $(HEAD) -n1 <$<; \ exit 1; \ fi if $(HEAD) -n1 $< | $(GREP) -q '\\" t$$' && ! $(GREP) -q '^\.TS$$' $<; \ then \ - 2>&1 $(ECHO) "$<:1: spurious '\\\" t' comment:"; \ - 2>&1 $(HEAD) -n1 <$<; \ + >&2 $(ECHO) "$<:1: spurious '\\\" t' comment:"; \ + >&2 $(HEAD) -n1 <$<; \ exit 1; \ fi if $(TAIL) -n+2 <$< | $(GREP) -q '\\" t$$'; \ then \ - 2>&1 $(ECHO) "$<: spurious '\\\" t' not in first line:"; \ - 2>&1 $(GREP) -n '\\" t$$' $< /dev/null; \ + >&2 $(ECHO) "$<: spurious '\\\" t' not in first line:"; \ + >&2 $(GREP) -n '\\" t$$' $< /dev/null; \ exit 1; \ fi touch $@ |