]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* Makefile.maint (maintainer-check): Rename as...
authorAkim Demaille <akim@epita.fr>
Sat, 14 Jul 2001 14:42:59 +0000 (14:42 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 14 Jul 2001 14:42:59 +0000 (14:42 +0000)
(maintainer-distcheck): this.
(changelog-check, static-check): New.
Use them.

ChangeLog
Makefile.maint

index 074167811a97964fa5623ffac23cc9a61ea64d8f..747187e4153eef41a7858b99df7cdfeb5929396e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-07-14  Akim Demaille  <akim@epita.fr>
+
+       * Makefile.maint (maintainer-check): Rename as...
+       (maintainer-distcheck): this.
+       (changelog-check, static-check): New.
+       Use them.
+
 2001-07-14  Kevin Ryde  <user42@zip.com.au>
 
         * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
index ecf1af238c256892579cee5ca61092eab8cb5e3f..e698a07530ea819361dfcb72e67c25a818a3a793 100644 (file)
@@ -1,15 +1,6 @@
 # -*-Makefile-*-
-# This Makefile fragment is shared between fileutils, sh-utils, textutils.
-
-maintainer-check:
-       if head ChangeLog| grep 'Version $(VERSION)' > /dev/null; then \
-         :; \
-       else \
-         echo "$(VERSION) not in ChangeLog; not tagging" 1>&2; \
-         exit 1; \
-       fi
-       $(MAKE) distcheck
-       $(MAKE) my-distcheck
+# This Makefile fragment is shared between fileutils, sh-utils, textutils,
+# and Autoconf.
 
 prev_version_file ?= .prev-version
 
@@ -24,6 +15,24 @@ this-cvs-tag = $(tag-package)-$(tag-this-version)
 prev-cvs-tag = $(tag-package)-$(tag-prev-version)
 my_distdir = $(PACKAGE)-$(VERSION)
 
+# Old releases are stored here.
+# Used for diffs and xdeltas.
+release-archive-dir = ../release
+
+
+
+## --------------- ##
+## Sanity checks.  ##
+## --------------- ##
+
+changelog-check:
+       if head ChangeLog | grep 'Version $(VERSION)' >/dev/null; then \
+         :; \
+       else \
+         echo "$(VERSION) not in ChangeLog; not tagging" 1>&2; \
+         exit 1; \
+       fi
+
 # Verify that all source files using _() are listed in po/POTFILES.in.
 po-check:
        if test -f po/POTFILES.in; then \
@@ -33,6 +42,28 @@ po-check:
          rm -f $@-1 $@-2; \
        fi
 
+# Check that `make alpha' will not fail at the end of the process.
+writable-files:
+       if test -d $(release-archive-dir); then :; else                 \
+         mkdir $(release-archive-dir);                                 \
+       fi
+       for file in $(distdir).tar.gz $(xd-delta)                       \
+                   $(release-archive-dir)/$(distdir).tar.gz            \
+                   $(release-archive-dir)/$(xd-delta); do              \
+         test -e $$file || continue;                                   \
+         test -w $$file                                                \
+           || { echo ERROR: $$file is not writable; fail=1; };         \
+       done;                                                           \
+       test "$$fail" && exit 1 || :
+
+static-check: changelog-check po-check writable-files check-copyright
+
+
+maintainer-distcheck: changelog-check
+       $(MAKE) distcheck
+       $(MAKE) my-distcheck
+
+
 # Do not save the original name or timestamp in the .tar.gz file.
 GZIP_ENV = '--no-name --best'
 
@@ -42,7 +73,7 @@ AMTAR ?= $(TAR)
 # Tag before making distribution.  Also, don't make a distribution if
 # checks fail.  Also, make sure the NEWS file is up-to-date.
 # FIXME: use dist-hook/my-dist like distcheck-hook/my-distcheck.
-cvs-dist: maintainer-check
+cvs-dist: maintainer-distcheck
        echo $(this-cvs-tag); \
        if cvs -n log -h README| grep -e $(this-cvs-tag): > /dev/null; then \
          echo "VERSION not new; not tagging" 1>&2; \
@@ -105,7 +136,6 @@ rel-check:
        echo "$(md5)  -" > $$md5_tmp; \
        md5sum -c $$md5_tmp < $$tarz
 
-release-archive-dir = ../release
 prev-tgz = $(PACKAGE)-$(PREV_VERSION).tar.gz
 xd-delta = $(PACKAGE)-$(PREV_VERSION)-$(VERSION).xdelta
 
@@ -142,19 +172,6 @@ announcement: NEWS ChangeLog $(distdir).tar.gz
              -e 'print "\n"."*"x70 ."\n"; s///; print; print "*"x70 ."\n"'; \
        )
 
-writable-files:
-       if test -d $(release-archive-dir); then :; else                 \
-         mkdir $(release-archive-dir);                                 \
-       fi
-       for file in $(distdir).tar.gz $(xd-delta)                       \
-                   $(release-archive-dir)/$(distdir).tar.gz            \
-                   $(release-archive-dir)/$(xd-delta); do              \
-         test -e $$file || continue;                                   \
-         test -w $$file                                                \
-           || { echo ERROR: $$file is not writable; fail=1; };         \
-       done;                                                           \
-       test "$$fail" && exit 1 || :
-
 WGET = wget
 ftp-gnu = ftp://ftp.gnu.org/gnu
 
@@ -215,7 +232,7 @@ check-copyright:
          || { echo 'out of date copyright in $<; update it' 1>&2; exit 1; }; \
        fi
 
-alpha: writable-files po-check check-copyright
+alpha: static-check
        $(MAKE) cvs-dist
        $(MAKE) -s announcement > /tmp/announce-$(my_distdir)
        ln $(distdir).tar.gz ../release