From: Paul Eggert Date: Fri, 10 Jun 2005 17:56:21 +0000 (+0000) Subject: * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t. X-Git-Tag: AUTOCONF-2.59c~336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0961b6fc08f82e5efd82d395f6206b0835e21bca;p=thirdparty%2Fautoconf.git * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t. (.x.1): Ignore the time stamp in the .TH line when deciding whether to update the man page. That way, we don't have to check in new man pages every month. --- diff --git a/ChangeLog b/ChangeLog index 37720ad31..78e181947 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-06-10 Paul Eggert + * man/Makefile.am (MOSTLYCLEANFILES): Add $(srcdir)/*.t. + (.x.1): Ignore the time stamp in the .TH line when deciding whether + to update the man page. That way, we don't have to check in new + man pages every month. + * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains quotes and backslashes. Patch from Derek Price. diff --git a/man/Makefile.am b/man/Makefile.am index fe813798a..e74355d37 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -47,6 +47,10 @@ $(srcdir)/ifnames.1: $(common_dep) $(binsrcdir)/ifnames.in $(srcdir)/config.guess.1: $(top_srcdir)/config/config.guess $(srcdir)/config.sub.1: $(top_srcdir)/config/config.sub +remove_time_stamp = 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/' + +MOSTLYCLEANFILES = $(srcdir)/*.t + SUFFIXES = .x .1 .x.1: @@ -65,4 +69,11 @@ SUFFIXES = .x .1 $(HELP2MAN) \ --include=$*.x \ --include=$(srcdir)/common.x \ - --output=$@ `echo '$*' | sed 's,.*/,,'` + --output=$@.t `echo '$*' | sed 's,.*/,,'` + if sed $(remove_time_stamp) $@ >$@a.t 2>/dev/null && \ + sed $(remove_time_stamp) $@.t | cmp $@a.t - >/dev/null 2>&1; then \ + touch $@; \ + else \ + mv $@.t $@; \ + fi + rm -f $@*.t