From: Alexandre Duret-Lutz Date: Tue, 11 Nov 2003 22:48:53 +0000 (+0000) Subject: * Makefile.am: Do not rerun `make dist' after tagging, `make distcheck' X-Git-Tag: Release-1-7d~19 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=64054e62e1fd242b1c7572828e030eebe013c2ab;p=automake.git * Makefile.am: Do not rerun `make dist' after tagging, `make distcheck' already build the tarballs. Commit files right before tagging. Check NEWS before running distcheck. --- diff --git a/ChangeLog b/ChangeLog index 7a1fab4e..092bb28c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2003-11-11 Alexandre Duret-Lutz + * Makefile.am: Do not rerun `make dist' after tagging, `make distcheck' + already build the tarballs. Commit files right before tagging. + Check NEWS before running distcheck. + * m4/amversion.in (AM_AUTOMAKE_VERSION): Missing cosmetic space. * configure.ac, NEWS: Bump version to 1.7c. diff --git a/HACKING b/HACKING index 52bb726a..f100c4ad 100644 --- a/HACKING +++ b/HACKING @@ -124,13 +124,13 @@ The repository will always have its own "odd" number so we can easily distinguish net and repo versions.) -* Configure, build, and install. +* Update ChangeLog. -* Run aclocal, automake, and autoconf. +* Run ./bootstrap, ./configure, make. -* Commit - -* Run `make cvs-dist' +* Run `make cvs-dist'. + This will run distcheck to create the tarball, commit the last + NEWS/configure.ac/ChangeLog changes, and tag the repository. * Put new release on ftp site and send announcement to automake list. If not an alpha, announcement must also go to FSF: @@ -140,7 +140,7 @@ autotools-announce@gnu.org, and automake@gnu.org. * Update version number in configure.ac to next alpha number. - Re-run autoconf and commit. + Re-run ./bootstrap and commit. ----- diff --git a/Makefile.am b/Makefile.am index 3b92a913..b3229eb7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -244,15 +244,24 @@ maintainer-check: automake aclocal fi -# Tag before making distribution. Also, don't make a distribution if -# checks fail. Also, make sure the NEWS file is up-to-date. -cvs-dist: maintainer-check distcheck +cvs-dist: maintainer-check +## Make sure clcommit exists (we use it at the end of cvs-dist). + @if (clcommit --version)>/dev/null 2>/dev/null; then :; else \ + echo "Get clcommit from module cvs-utils on Savannah."; \ + exit 1; \ + fi +## Make sure the NEWS file is up-to-date. @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \ echo "NEWS not updated; not releasing" 1>&2; \ exit 1; \ fi - cd $(srcdir) && cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'` - $(MAKE) dist +## Build the distribution + $(MAKE) distcheck +## Finally, if anything was successful, commit the last changes and tag +## the release in the repository. We don't use RCS keywords so it's OK +## to distribute the files before they were committed. + cd $(srcdir) && clcommit && \ + cvs -q tag -c `echo "Release-$(VERSION)" | sed 's/\./-/g'` cvs-diff: thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \ diff --git a/Makefile.in b/Makefile.in index a6fcfb76..7a130b81 100644 --- a/Makefile.in +++ b/Makefile.in @@ -734,15 +734,18 @@ maintainer-check: automake aclocal exit 1; \ fi -# Tag before making distribution. Also, don't make a distribution if -# checks fail. Also, make sure the NEWS file is up-to-date. -cvs-dist: maintainer-check distcheck +cvs-dist: maintainer-check + @if (clcommit --version)>/dev/null 2>/dev/null; then :; else \ + echo "Get clcommit from module cvs-utils on Savannah."; \ + exit 1; \ + fi @if sed 1q $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \ echo "NEWS not updated; not releasing" 1>&2; \ exit 1; \ fi - cd $(srcdir) && cvs -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'` - $(MAKE) dist + $(MAKE) distcheck + cd $(srcdir) && clcommit && \ + cvs -q tag -c `echo "Release-$(VERSION)" | sed 's/\./-/g'` cvs-diff: thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \