Fixup release rules.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 29 Nov 2008 10:03:32 +0000 (11:03 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 29 Nov 2008 10:05:22 +0000 (11:05 +0100)
* Makefile.am (cvs-diff): Remove.
(git-dist): Do not use clcommit any more.  Use new-style tag
name.  Pass $(AM_MAKEFLAGS) to $(MAKE).
(git-diff): Adjust.
(git-release): Do not upload to sources.redhat.com.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
HACKING
Makefile.am
Makefile.in

index a0c5576..ed86270 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-11-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fixup release rules.
+       * Makefile.am (cvs-diff): Remove.
+       (git-dist): Do not use clcommit any more.  Use new-style tag
+       name.  Pass $(AM_MAKEFLAGS) to $(MAKE).
+       (git-diff): Adjust.
+       (git-release): Do not upload to sources.redhat.com.
+
 2008-11-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Fix portability issues in distcleancheck_listfiles doc example.
diff --git a/HACKING b/HACKING
index 5df650e..307e36a 100644 (file)
--- a/HACKING
+++ b/HACKING
 * Run `make release-stats' if release statistics in doc/automake.texi
   have not been updated yet.
 
-* NOTE: the next step has not been tested yet with git, so be careful.
-
 * Run `make git-release'.
   This will run distcheck to create the tarballs, commit the last
   NEWS/configure.ac/ChangeLog changes, tag the repository, sign
 * Update version number in configure.ac to next alpha number.
   Re-run ./bootstrap and commit.
 
+* Don't forget to `git push' your changes so they appear in the public
+  git tree.
+
+* Update the web pages at sources.redhat.com:
+  - bump version in index.rst,
+  - add entry to news.rst,
+  - run `make' to update .html files,
+  - create manuals:
+      cd doc
+      make pdf
+      make html MAKEINFOFLAGS=--no-split
+  - copy automake.html and automake.pdf to web cvs,
+  - add ChangeLog entry and commit.
+
+* Update the manuals at www.gnu.org:
+  - Generate manuals:
+    cd doc
+    wget "http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/texinfo/texinfo/util/gendocs.sh"
+    wget "http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/texinfo/texinfo/util/gendocs_template"
+    sh ./gendocs.sh automake  "GNU Automake"
+  - copy manuals recursively to web cvs,
+  - commit.
+
 * Send announcement at least to autotools-announce@gnu.org, and
   automake@gnu.org.  If not an alpha, announcement must also go to
-  info-gnu@gnu.org.
+  info-gnu@gnu.org.  Copy this announcement into the NEWS feed at
+  <https://savannah.gnu.org/projects/automake>.
 
 -----
 
-Copyright (C) 2003, 2007 Free Software Foundation, Inc.
+Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc.
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
index 55e1a66..d637e10 100644 (file)
@@ -336,23 +336,18 @@ maintainer-check: automake aclocal
 
 
 git-dist: maintainer-check
-## Make sure clcommit exists (we use it at the end of git-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
 ## Build the distribution
-       $(MAKE) distcheck
+       $(MAKE) $(AM_MAKEFLAGS) 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 && \
-         git tag -s `echo "Release-$(VERSION)" | sed 's/\./-/g'`
+       cd $(srcdir) && git commit -a -s && \
+          git tag -s "v$(VERSION)" -m "Release $(VERSION)"
 
 git-release: git-dist
        case $(VERSION) in \
@@ -360,25 +355,15 @@ git-release: git-dist
          *)      dest=ftp;; \
        esac; \
        $(srcdir)/lib/gnupload $(GNUPLOADFLAGS) \
-         --to sources.redhat.com:~ftp/pub/automake \
          --to $$dest.gnu.org:automake $(DIST_ARCHIVES)
 
-cvs-diff:
-       thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
-       if test -z "$$OLDVERSION"; then \
-         prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
-       else prevno="$$OLDVERSION"; fi; \
-       prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
-       cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
-           > $(PACKAGE)-$$prevno-$(VERSION).diff
-
 git-diff:
-       thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
+       thisver="v$(VERSION)"; \
        if test -z "$$OLDVERSION"; then \
          prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
        else prevno="$$OLDVERSION"; fi; \
-       prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
-       git diff $$prevver $$thisver $(PACKAGE) \
+       prevver=v$$prevno; \
+       git diff $$prevver..$$thisver $(PACKAGE) \
            > $(PACKAGE)-$$prevno-$(VERSION).diff
 
 ## Check our path lengths.
index 375bf9b..41dc876 100644 (file)
@@ -964,17 +964,13 @@ maintainer-check: automake aclocal
        fi
 
 git-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
-       $(MAKE) distcheck
-       cd $(srcdir) && clcommit && \
-         git tag -s `echo "Release-$(VERSION)" | sed 's/\./-/g'`
+       $(MAKE) $(AM_MAKEFLAGS) distcheck
+       cd $(srcdir) && git commit -a -s && \
+          git tag -s "v$(VERSION)" -m "Release $(VERSION)"
 
 git-release: git-dist
        case $(VERSION) in \
@@ -982,25 +978,15 @@ git-release: git-dist
          *)      dest=ftp;; \
        esac; \
        $(srcdir)/lib/gnupload $(GNUPLOADFLAGS) \
-         --to sources.redhat.com:~ftp/pub/automake \
          --to $$dest.gnu.org:automake $(DIST_ARCHIVES)
 
-cvs-diff:
-       thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
-       if test -z "$$OLDVERSION"; then \
-         prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
-       else prevno="$$OLDVERSION"; fi; \
-       prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
-       cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
-           > $(PACKAGE)-$$prevno-$(VERSION).diff
-
 git-diff:
-       thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
+       thisver="v$(VERSION)"; \
        if test -z "$$OLDVERSION"; then \
          prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
        else prevno="$$OLDVERSION"; fi; \
-       prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
-       git diff $$prevver $$thisver $(PACKAGE) \
+       prevver=v$$prevno; \
+       git diff $$prevver..$$thisver $(PACKAGE) \
            > $(PACKAGE)-$$prevno-$(VERSION).diff
 
 path-check: distdir