From: Tom Tromey Date: Sun, 14 Jan 1996 05:58:39 +0000 (+0000) Subject: Don't allow Gnits release until NEWS updated X-Git-Tag: Release-0-29~24 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=46292bcf917bb858dcd1dd980e548b88cc8eeea4;p=automake.git Don't allow Gnits release until NEWS updated --- diff --git a/ChangeLog b/ChangeLog index 43c3f776..92115b3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Sat Jan 13 00:18:06 1996 Tom Tromey + * automake.in (handle_dist_worker): If Gnits, don't allow release + until NEWS is updated. + * configure.in (VERSION): Version 0.29. * Makefile.am (maintainer-check): Look for perl4.036 in path. diff --git a/Makefile.in b/Makefile.in index a16dc320..295117bb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated automatically by automake 0.28 from Makefile.am +# Makefile.in generated automatically by automake 0.29 from Makefile.am # Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation @@ -211,6 +211,10 @@ maintainer-clean-tags: distdir = $(PACKAGE)-$(VERSION) dist: $(DEP_DISTFILES) + @if sed 15q NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \ + echo "NEWS not updated; not releasing" 1>&2; \ + exit 1; \ + fi rm -rf $(distdir) mkdir $(distdir) chmod 777 $(distdir) diff --git a/TODO b/TODO index f378c97a..6ab10301 100644 --- a/TODO +++ b/TODO @@ -9,13 +9,6 @@ Top priorities: * am_error should use printf-style arguments (for eventual gettext scheme) -If --gnits, put this into dist rule: - @if sed 1q NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \ - echo "NEWS not updated; not releasing" 1>&2; \ - exit 1; \ - fi - - uninstall and pkg-dirs should rm -rf the dir. In general most .am files should be merged into automake. For diff --git a/automake.in b/automake.in index fdb291a5..ca837442 100755 --- a/automake.in +++ b/automake.in @@ -687,6 +687,18 @@ sub handle_dist_worker # Initialization; only at top level. if ($relative_dir eq '.') { + if ($strictness >= $GNITS) + { + # For Gnits users, this is pretty handy. Look at 15 lines + # in case some explanatory text is desirable. + $output_rules .= ' @if sed 15q NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \\ + echo "NEWS not updated; not releasing" 1>&2; \\ + exit 1; \\ + fi +'; + } + + $output_rules .= ( # Create dist directory.