autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Makefile.maint


From: Akim Demaille
Subject: FYI: Makefile.maint
Date: 14 Jul 2001 16:41:26 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor)

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * Makefile.maint (maintainer-check): Rename as...
        (maintainer-distcheck): this.
        (changelog-check, static-check): New.
        Use them.

Index: Makefile.maint
===================================================================
RCS file: /cvs/autoconf/Makefile.maint,v
retrieving revision 1.4
diff -u -u -r1.4 Makefile.maint
--- Makefile.maint 2001/06/26 12:52:17 1.4
+++ Makefile.maint 2001/07/14 14:42:00
@@ -1,16 +1,7 @@
 # -*-Makefile-*-
-# This Makefile fragment is shared between fileutils, sh-utils, textutils.
+# This Makefile fragment is shared between fileutils, sh-utils, textutils,
+# and Autoconf.
 
-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
-
 prev_version_file ?= .prev-version
 
 THIS_VERSION_REGEXP = $(subst .,\.,$(VERSION))
@@ -24,6 +15,24 @@
 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 @@
          rm -f address@hidden address@hidden; \
        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 @@
 # 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 @@
        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 @@
              -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 @@
          || { 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]