summaryrefslogtreecommitdiff
path: root/lib/missing
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-12-21 22:38:37 +0100
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-12-21 22:38:37 +0100
commit0fb020fa6e1959f06f44427f4b6b0ca99e0a2745 (patch)
tree23bca9935fa285475ed2993977f9c15e7c5a96a2 /lib/missing
parent08810c8aba0635190b8d6d230fec651c5b44698b (diff)
downloadautomake-0fb020fa6e1959f06f44427f4b6b0ca99e0a2745.tar.gz
Revamp semantics for `missing help2man' and manpage distribution.
Previously, `missing help2man' would create a missing man page containing an error message, and exit 1. This does not play well with `make': the next run will see this particular man page as being up to date, and will only error out on the next generated man page, if any; repeat until all pages are done. This patch changes `missing' to exit successfully in this case, but `make dist' will ensure that no such man pages are packaged. * lib/missing: Exit successfully even if we create a replacement page due to missing help2man. * automake.in (make_paragraphs): Define %HAVE-MANS% to be true if this makefile deals with man pages. * lib/am/distdir.am (distdir): If %INSTALL-MAN% and %HAVE-MANS%, check that no man page in $(MANS) contains the replacement text from `missing'. * tests/man4.test: New test. * tests/Makefile.am: Update. * NEWS: Reorder a bit, update. * THANKS: Update. Report by Werner Lemberg and Karl Berry. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'lib/missing')
-rwxr-xr-xlib/missing4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/missing b/lib/missing
index 32e23d236..f359dae7a 100755
--- a/lib/missing
+++ b/lib/missing
@@ -1,7 +1,7 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
-scriptversion=2008-12-13.14
+scriptversion=2008-12-21.33
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008 Free Software Foundation, Inc.
@@ -285,7 +285,7 @@ WARNING: \`$1' is $msg. You should only need it if
else
test -z "$file" || exec >$file
echo ".ab help2man is required to generate this page"
- exit 1
+ exit $?
fi
;;