1 ## maint.mk - maintainer rules for managing m4 distributions
3 ## Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free
4 ## Software Foundation, Inc.
6 ## This file is part of GNU M4.
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/>.
22 ## --- RULES FOR THE MAINTAINER --- ##
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; \
37 $(CVS
) -q tag
`echo "Release-$(VERSION)" | sed 's/\./-/g'`
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
52 $(SHELL
) "$(abs_srcdir)/$(config_aux_dir)/gendocs.sh" $(PACKAGE
) \
53 "GNU $(PACKAGE)- GNU macro processor"
54 @echo
" *** Upload the doc/manual directory to web-cvs."