+2001-07-14 Akim Demaille <akim@epita.fr>
+
+ * Makefile.maint (cvs-check, cvs-tag-check, cvs-diff-check): New.
+
2001-07-14 Akim Demaille <akim@epita.fr>
* Makefile.maint (maintainer-check): Rename as...
2001-07-14 Kevin Ryde <user42@zip.com.au>
- * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
+ * doc/autoconf.texi (C++ Compilers Characteristics): Last resort
for CXX is g++, not gcc.
2001-07-14 Akim Demaille <akim@epita.fr>
if head ChangeLog | grep 'Version $(VERSION)' >/dev/null; then \
:; \
else \
- echo "$(VERSION) not in ChangeLog; not tagging" 1>&2; \
+ echo "$(VERSION) not in ChangeLog" 1>&2; \
exit 1; \
fi
done; \
test "$$fail" && exit 1 || :
-static-check: changelog-check po-check writable-files check-copyright
+# Checks that don't require cvs.
+local-check: changelog-check po-check writable-files check-copyright
+# Sanity checks with the CVS repository.
+cvs-tag-check:
+ echo $(this-cvs-tag); \
+ if cvs -n log -h README | grep -e $(this-cvs-tag): >/dev/null; then \
+ echo "$(this-cvs-tag) as already been used; not tagging" 1>&2; \
+ exit 1; \
+ else :; fi
+
+cvs-diff-check:
+ if cvs diff >cvs-diffs; then \
+ rm cvs-diffs; \
+ else \
+ echo "Some files are locally modified:" 1>&2; \
+ cat cvs-diffs; \
+ exit 1; \
+ fi
+
+cvs-check: cvs-diff-check cvs-tag-check
+
maintainer-distcheck: changelog-check
$(MAKE) distcheck
$(MAKE) my-distcheck
# 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-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; \
- exit 1; \
- fi; \
- cvs update po; \
+cvs-dist: cvs-check maintainer-distcheck
+ cvs update po
cvs tag -c $(this-cvs-tag)
$(MAKE) dist
alpha: static-check
$(MAKE) cvs-dist
$(MAKE) -s announcement > /tmp/announce-$(my_distdir)
- ln $(distdir).tar.gz ../release
+ ln $(distdir).tar.gz $(release-archive-dir)
chmod a-w $(distdir).tar.gz
cd $(release-archive-dir) \
&& xdelta delta -9 $(prev-tgz) $(distdir).tar.gz $(xd-delta) || :
* autoupdate Invocation:: Automatic update of @file{configure.ac}
* Obsolete Macros:: Backward compatibility macros
* Autoconf 1:: Tips for upgrading your files
-* Autoconf 2.13::
+* Autoconf 2.13:: Some fresher tips
@end menu
@node Obsolete config.status Use, acconfig.h, Obsolete Constructs, Obsolete Constructs