2 datarootdir
= @datarootdir@
15 # # # # # # # # # # Release variables (for maintainer only):
17 # Files removed from `cvs export' output before creating the tar-ball:
18 CVS_IGNORE_FILES
= .cvsignore contrib
/.cvsignore etc
/.cvsignore \
19 lisp
/.cvsignore texi
/.cvsignore texi
/ps
/.cvsignore .arch-inventory
20 # Name and mail address in ChangeLog format for the release commit:
21 COMMITTER
= Lars Magne Ingebrigtsen
<lars@ingebrigtsen.no
>
22 # CODENAME for development releases (CODENAME must have a trailing space,
25 # Codename initial (lower case), e.g. 'n' for "No Gnus".
27 # Files with hard-coded versions numbers:
28 RELEASE_COMMIT_FILES
= ChangeLog \
29 etc
/ChangeLog lisp
/ChangeLog texi
/ChangeLog \
31 texi
/gnus.texi texi
/message.texi texi
/gnus-faq.texi
32 # Pattern matching previous version numbers:
33 OLD_PATTERN
= \
(5\.
[0-9][0-9]\.
[0-9]*\|
5\.
[0-9][0-9]\|
0\.
[1-9][0-9]*\
)
35 CODENAME_PATTERN
= [A-Z
]*[a-z
]* *
36 # CVS tag of the previous version:
38 # CVS tag of the current release:
41 COMMIT_STRING
= $(CODENAME
)Gnus v
$(VERSION
) is released.
44 # - release-bump-version
46 # - release-files or release-files-signed
48 # # # # # # # # # # End of release variables
53 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" lispdir
="$(lispdir)" all
56 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" lispdir
="$(lispdir)" install
57 cd texi
&& $(MAKE
) EMACS
="$(EMACS)" install
58 cd etc
&& $(MAKE
) EMACS
="$(EMACS)" install
60 list-installed-shadows
:
61 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" lispdir
="$(lispdir)" list-installed-shadows
63 remove-installed-shadows
:
64 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" lispdir
="$(lispdir)" remove-installed-shadows
67 cd lisp
&& $(MAKE
) lispdir
="$(lispdir)" uninstall
68 cd texi
&& $(MAKE
) uninstall
69 cd etc
&& $(MAKE
) uninstall
71 GNUS-NEWS
: texi
/gnus-news.texi
72 cd texi
&& $(MAKE
) GNUS-NEWS
74 # Rule for Lars and nobody else.
76 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" some
78 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" clever
81 cd texi
&& $(MAKE
) EMACS
="$(EMACS)" all
84 for i in lisp texi etc texi
/ps
; do
(cd
$$i; $(MAKE
) clean); done
88 cd lisp
&& rm -f
*.elc auto-autoloads.el custom-load.el gnus-load.el
91 $(MAKE
) EMACS
=$(XEMACS
)
94 $(MAKE
) EMACS
="$(XEMACS)" some
97 for i in lisp texi etc texi
/ps
; do
(cd
$$i; $(MAKE
) distclean); done
98 rm -f config.log config.status config.cache Makefile
100 config.status
: $(srcdir)/configure
101 $(SHELL
) .
/config.status
--recheck
102 $(srcdir)/configure
: $(srcdir)/configure.in
103 cd
$(srcdir) && autoconf
104 Makefile
: $(srcdir)/Makefile.in config.status
105 CONFIG_FILES
=$@ CONFIG_HEADERS
= $(SHELL
) .
/config.status
107 # # # # # # # # # # Release targets (for maintainer only):
109 release-check-settings
:
111 @echo
"COMMITTER = '$(COMMITTER)'"
112 @echo
" (example: 'Foo Bar <foo.bar@somewhere.invalid>')"
113 @echo
"VERSION = '$(VERSION)' (example: '5.10.6')"
114 @echo
"CODENAME = '$(CODENAME)' (example: 'No ')"
115 @echo
"CIN = '$(CIN)' (example: 'n', codename initial)"
116 @echo
"TAG = '$(TAG)' (example: 'v5-10-6')"
117 @echo
"OLD_TAG = '$(OLD_TAG)' (example: 'v5-10-5')"
119 @if
[ x
"$(VERSION)" = x
]; then echo
"error: No VERSION given."; exit
1; else :; fi
120 @if
[ x
"$(TAG)" = x
]; then echo
"error: No TAG given."; exit
1; else :; fi
122 @echo Settings checked successfully.
124 @echo You may now make...
125 @echo release-bump-version
126 @echo release-add-changelog
128 @echo release-files or release-files-signed
131 $(MAKE
) COMMIT_STRING
='Bump version to $(VERSION).' release-bump-version
134 $(MAKE
) COMMIT_STRING
='Bump version to $(VERSION).' release-commit
136 # Needs GNU grep and a recent GNU sed:
137 release-bump-version
: release-check-settings
138 $(SED_I
) '/^(defconst gnus-version-number /s,"$(OLD_PATTERN)","$(VERSION)",' lisp
/gnus.el
139 $(SED_I
) '/^.newcommand{.gnusversionname}{$(CODENAME_PATTERN)Gnus v/s,$(OLD_PATTERN),$(VERSION),' texi
/gnus.texi
140 $(SED_I
) '/^This manual corresponds to $(CODENAME_PATTERN)Gnus v/s,$(OLD_PATTERN),$(VERSION),' texi
/gnus.texi
141 $(SED_I
) '/^@samp.{$(CODENAME_PATTERN)Gnus v.*@c Adjust Makefile/s,$(OLD_PATTERN),$(VERSION),' texi
/gnus.texi
142 $(SED_I
) '/^corresponding to this manual is $(CODENAME_PATTERN)Gnus v/s,$(OLD_PATTERN),$(VERSION),' texi
/message.texi
143 $(SED_I
) 's,/[a-z]*gnus-[0-9.]*/,/$(CIN)gnus-$(VERSION)/,' README
144 if
[ "x$(CODENAME)" = "x" ]; then \
145 $(SED_I
) '/The current release ($(OLD_PATTERN)) should/s,$(OLD_PATTERN),$(VERSION),' texi
/gnus-faq.texi
; \
149 # Only for going from the development version to release...
150 if
[ "x$(CODENAME)" = "x" -a
"$(CODENAME_TO_STABLE)" = t
]; then \
151 $(SED_I
) '/^(defconst gnus-version /s,"$(CODENAME_PATTERN)Gnus v,"Gnus v,' lisp
/gnus.el
; \
152 $(SED_I
) '/^.newcommand{.gnusversionname}{$(CODENAME_PATTERN)Gnus v/s,$(CODENAME_PATTERN)Gnus v$(OLD_PATTERN),Gnus v$(VERSION),' texi
/gnus.texi
; \
153 $(SED_I
) '/^This manual corresponds to $(CODENAME_PATTERN)Gnus v/s,$(CODENAME_PATTERN)Gnus v$(OLD_PATTERN),Gnus v$(VERSION),' texi
/gnus.texi
; \
154 $(SED_I
) '/^corresponding to this manual is $(CODENAME_PATTERN)Gnus v/s,$(CODENAME_PATTERN)Gnus v$(OLD_PATTERN),Gnus v$(VERSION),' texi
/message.texi
; \
158 $(MAKE
) release-diff-commit-files
160 # Add ChangeLog entry...
161 release-add-changelog
: release-check-settings
162 @echo
"Updating ChangeLog files..."
163 @if grep
-q
"$(CODENAME)Gnus v$(VERSION) is released" ChangeLog
; then \
164 echo
"ChangeLog is already updated"; \
166 $(SED_I
) "1s|^|`date -I` $(COMMITTER)\n\n\t* README: $(COMMIT_STRING)\n\n|" ChangeLog
; \
168 @if grep
-q
"$(CODENAME)Gnus v$(VERSION) is released" etc
/ChangeLog
; then \
169 echo
"etc/ChangeLog is already updated"; \
171 $(SED_I
) "1s|^|`date -I` $(COMMITTER)\n\n\t* ChangeLog: $(COMMIT_STRING)\n\n|" etc
/ChangeLog
; \
173 @if grep
-q
"$(CODENAME)Gnus v$(VERSION) is released" texi
/ChangeLog
; then \
174 echo
"texi/ChangeLog is already updated"; \
176 $(SED_I
) "1s|^|`date -I` $(COMMITTER)\n\n\t* gnus.texi, gnus-faq.texi, message.texi: $(COMMIT_STRING)\n\n|" texi
/ChangeLog
; \
178 @if grep
-q
"$(CODENAME)Gnus v$(VERSION) is released" lisp
/ChangeLog
; then \
179 echo
"lisp/ChangeLog is already updated"; \
181 $(SED_I
) "1s|^|`date -I` $(COMMITTER)\n\n\t* gnus.el: $(COMMIT_STRING)\n\n|" lisp
/ChangeLog
; \
183 $(MAKE
) release-diff-commit-files
185 release-diff-commit-files
: release-check-settings
186 cvs diff
-U0
$(RELEASE_COMMIT_FILES
); sleep
2
188 release-revert-files
:
189 rm -i
$(RELEASE_COMMIT_FILES
)
190 cvs update
$(RELEASE_COMMIT_FILES
)
192 release-commit
: release-check-settings
195 @echo
"Really do the release-commit for $(CODENAME)Gnus v$(VERSION)?"
196 @echo
"Command line:"
197 @echo
" " cvs commit
-m
"$(COMMIT_STRING)" $(RELEASE_COMMIT_FILES
)
199 @echo
"Hit RET to continue or Ctrl-C to abort."
202 cvs commit
-m
"$(COMMIT_STRING)" $(RELEASE_COMMIT_FILES
)
204 @echo
"Add tag $(TAG) to CVS?"
205 @echo
"Command line:"
206 @echo
" " cvs tag
$(TAG
)
207 @echo
"Hit RET to continue or Ctrl-C to abort."
212 release-files
: release-make-tar-ball release-diff
213 @echo
"Release files have been created:"
214 @ls
-l
$(CIN
)gnus-
$(VERSION
).
tar.gz
215 @ls
-l
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
217 release-files-signed
: release-files release-sign-files
219 # Sign prepared files:
221 if
[ "x$$GPG_AGENT_INFO" = "x" ]; then \
222 read
-sp
"Enter pass phrase: " phrase
; \
223 gpg_opt
="--passphrase-fd 0"; \
225 gpg_opt
=""; phrase
=""; \
227 for i in
$(CIN
)gnus-
$(VERSION
).
tar.gz \
228 $(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
; do \
230 echo
"$$phrase" | gpg
--detach-sign
$$gpg_opt $$i; \
232 @ls
-l
$(CIN
)gnus-
$(VERSION
).
tar.gz
{.sig
,}
233 @ls
-l
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
{.sig
,}
234 @gpg
--verify
$(CIN
)gnus-
$(VERSION
).
tar.gz
{.sig
,}
235 @gpg
--verify
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
{.sig
,}
237 release-cvs-export
$(CIN
)gnus-
$(VERSION
): release-check-settings
238 rm -fr
$(CIN
)gnus-
$(VERSION
)
239 cvs
export -d
$(CIN
)gnus-
$(VERSION
) -r
$(TAG
) gnus
241 release-make-tar-ball
: $(CIN
)gnus-
$(VERSION
)
242 [ -d
$(CIN
)gnus-
$(VERSION
) ] && cd
$(CIN
)gnus-
$(VERSION
) && \
243 rm $(CVS_IGNORE_FILES
) || true
244 tar zcvf
$(CIN
)gnus-
$(VERSION
).
tar.gz
$(CIN
)gnus-
$(VERSION
)
245 ls
-l
$(CIN
)gnus-
$(VERSION
).
tar.gz
247 # Make a diff between current and previous release. Example:
248 # ftp://quimby.gnus.org/pub/gnus/ding-patches/gnus-5.10.5-5.10.6.diff.gz
249 release-diff
: release-check-settings
250 cvs diff
-r
$(OLD_TAG
) -r
$(TAG
) | sed
-e
'/^\? /d' > temp.diff || true
251 mv temp.diff
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff
252 $(GZIP_PROG
) $(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff
253 ls
-l
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
255 release-post-clean
: release-check-settings
256 rm -fr
$(CIN
)gnus-
$(TAG
) temp.diff
258 # # # # # # # # # # End of release targets
260 # Tell versions [3.59,3.63) of GNU make to not export all variables.
261 # Otherwise a system limit (for SysV at least) may be exceeded.