Stress test for hash resizing.
[m4.git] / maint.mk
blob88089c388969cf4c6ca2eb1ca81ef9b38ecdff6c
1 ## maint.mk - maintainer rules for managing m4 distributions
2 ##
3 ## Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 ## Free Software Foundation, Inc.
5 ##
6 ## This file is part of GNU M4.
7 ##
8 ## GNU M4 is free software: you can redistribute it and/or modify
9 ## it under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation, either version 3 of the License, or
11 ## (at your option) any later version.
13 ## GNU M4 is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ## GNU General Public License for more details.
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
21 ## ##
22 ## --- RULES FOR THE MAINTAINER --- ##
23 ## ##
25 ## TODO - fix this file now that m4 is maintained in git, not CVS.
27 CVS = cvs # set it to `:' to avoid CVS operations at dist time
29 # Tag before making distribution. Also, don't make a distribution if
30 # checks fail. Also, make sure the NEWS file is up-to-date.
31 cvs-dist: distcheck # maintainer-check
32 @if sed '1,2d;3q' $(srcdir)/NEWS | grep -e "$(VERSION)" > dev/null; \
33 echo "NEWS not updated; not releasing" 1>&2; \
34 exit 1;
36 cd $(srcdir) && \
37 $(CVS) -q tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
38 $(MAKE) dist
40 cvs-diff:
41 thisver=`echo "Release-$(VERSION)" | sed 's/\./-/g'`; \
42 if test -z "$$OLDVERSION"; then \
43 prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
44 else prevno="$$OLDVERSION"; fi; \
45 prevver=Release-`echo $$prevno | sed 's/\./-/g'`; \
46 cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
47 > $(PACKAGE)-$$prevno-$(VERSION).diff
49 .PHONY: web-manual
50 web-manual:
51 @cd '$(srcdir)/doc'; \
52 $(SHELL) ../$(config_aux_dir)/gendocs.sh \
53 -o '$(abs_builddir)/doc/manual' \
54 --email $(PACKAGE_BUGREPORT) $(PACKAGE) \
55 "$(PACKAGE_NAME) - $(manual_title)"
56 @echo " *** Upload the doc/manual directory to web-cvs."