14 # # # # # # # # # # Release variables (for maintainer only):
16 # Files removed from `cvs export' output before creating the tar-ball:
17 CVS_IGNORE_FILES
= .cvsignore contrib
/.cvsignore etc
/.cvsignore \
18 lisp
/.cvsignore texi
/.cvsignore texi
/ps
/.cvsignore .arch-inventory
19 # Name and mail address in ChangeLog format for the release commit:
20 COMMITTER
= Lars Magne Ingebrigtsen
<lars@ingebrigtsen.no
>
21 # CODENAME for development releases (CODENAME must have a trailing space,
24 # Codename initial (lower case), e.g. 'n' for "No Gnus".
26 # Files with hard-coded versions numbers:
27 RELEASE_COMMIT_FILES
= ChangeLog \
28 etc
/ChangeLog lisp
/ChangeLog texi
/ChangeLog \
30 texi
/gnus.texi texi
/message.texi texi
/gnus-faq.texi
31 # Pattern matching previous version numbers:
32 OLD_PATTERN
= \
(5\.
[0-9][0-9]\.
[0-9]*\|
5\.
[0-9][0-9]\|
0\.
[1-9][0-9]*\
)
34 CODENAME_PATTERN
= [A-Z
]*[a-z
]* *
35 # CVS tag of the previous version:
37 # CVS tag of the current release:
40 COMMIT_STRING
= $(CODENAME
)Gnus v
$(VERSION
) is released.
43 # - release-bump-version
45 # - release-files or release-files-signed
47 # # # # # # # # # # End of release variables
52 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" lispdir
="$(lispdir)" all
55 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" lispdir
="$(lispdir)" install
56 cd texi
&& $(MAKE
) EMACS
="$(EMACS)" install
57 cd etc
&& $(MAKE
) EMACS
="$(EMACS)" install
59 list-installed-shadows
:
60 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" lispdir
="$(lispdir)" list-installed-shadows
62 remove-installed-shadows
:
63 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" lispdir
="$(lispdir)" remove-installed-shadows
66 cd lisp
&& $(MAKE
) lispdir
="$(lispdir)" uninstall
67 cd texi
&& $(MAKE
) uninstall
68 cd etc
&& $(MAKE
) uninstall
70 GNUS-NEWS
: texi
/gnus-news.texi
71 cd texi
&& $(MAKE
) GNUS-NEWS
73 # Rule for Lars and nobody else.
75 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" some
77 cd lisp
&& $(MAKE
) EMACS
="$(EMACS)" clever
80 cd texi
&& $(MAKE
) EMACS
="$(EMACS)" all
83 for i in lisp texi etc texi
/ps
; do
(cd
$$i; $(MAKE
) clean); done
87 cd lisp
&& rm -f
*.elc auto-autoloads.el custom-load.el gnus-load.el
90 $(MAKE
) EMACS
=$(XEMACS
)
93 $(MAKE
) EMACS
="$(XEMACS)" some
96 for i in lisp texi etc texi
/ps
; do
(cd
$$i; $(MAKE
) distclean); done
97 rm -f config.log config.status config.cache Makefile
99 config.status
: $(srcdir)/configure
100 $(SHELL
) .
/config.status
--recheck
101 $(srcdir)/configure
: $(srcdir)/configure.in
102 cd
$(srcdir) && autoconf
103 Makefile
: $(srcdir)/Makefile.in config.status
104 CONFIG_FILES
=$@ CONFIG_HEADERS
= $(SHELL
) .
/config.status
106 # # # # # # # # # # Release targets (for maintainer only):
108 release-check-settings
:
110 @echo
"COMMITTER = '$(COMMITTER)'"
111 @echo
" (example: 'Foo Bar <foo.bar@somewhere.invalid>')"
112 @echo
"VERSION = '$(VERSION)' (example: '5.10.6')"
113 @echo
"CODENAME = '$(CODENAME)' (example: 'No ')"
114 @echo
"CIN = '$(CIN)' (example: 'n', codename initial)"
115 @echo
"TAG = '$(TAG)' (example: 'v5-10-6')"
116 @echo
"OLD_TAG = '$(OLD_TAG)' (example: 'v5-10-5')"
118 @if
[ x
"$(VERSION)" = x
]; then echo
"error: No VERSION given."; exit
1; else :; fi
119 @if
[ x
"$(TAG)" = x
]; then echo
"error: No TAG given."; exit
1; else :; fi
121 @echo Settings checked successfully.
123 @echo You may now make...
124 @echo release-bump-version
125 @echo release-add-changelog
127 @echo release-files or release-files-signed
130 $(MAKE
) COMMIT_STRING
='Bump version to $(VERSION).' release-bump-version
133 $(MAKE
) COMMIT_STRING
='Bump version to $(VERSION).' release-commit
135 # Needs GNU grep and a recent GNU sed:
136 release-bump-version
: release-check-settings
137 $(SED_I
) '/^(defconst gnus-version-number /s,"$(OLD_PATTERN)","$(VERSION)",' lisp
/gnus.el
138 $(SED_I
) '/^.newcommand{.gnusversionname}{$(CODENAME_PATTERN)Gnus v/s,$(OLD_PATTERN),$(VERSION),' texi
/gnus.texi
139 $(SED_I
) '/^This manual corresponds to $(CODENAME_PATTERN)Gnus v/s,$(OLD_PATTERN),$(VERSION),' texi
/gnus.texi
140 $(SED_I
) '/^@samp.{$(CODENAME_PATTERN)Gnus v.*@c Adjust Makefile/s,$(OLD_PATTERN),$(VERSION),' texi
/gnus.texi
141 $(SED_I
) '/^corresponding to this manual is $(CODENAME_PATTERN)Gnus v/s,$(OLD_PATTERN),$(VERSION),' texi
/message.texi
142 $(SED_I
) 's,/[a-z]*gnus-[0-9.]*/,/$(CIN)gnus-$(VERSION)/,' README
143 if
[ "x$(CODENAME)" = "x" ]; then \
144 $(SED_I
) '/The current release ($(OLD_PATTERN)) should/s,$(OLD_PATTERN),$(VERSION),' texi
/gnus-faq.texi
; \
148 # Only for going from the development version to release...
149 if
[ "x$(CODENAME)" = "x" -a
"$(CODENAME_TO_STABLE)" = t
]; then \
150 $(SED_I
) '/^(defconst gnus-version /s,"$(CODENAME_PATTERN)Gnus v,"Gnus v,' lisp
/gnus.el
; \
151 $(SED_I
) '/^.newcommand{.gnusversionname}{$(CODENAME_PATTERN)Gnus v/s,$(CODENAME_PATTERN)Gnus v$(OLD_PATTERN),Gnus v$(VERSION),' texi
/gnus.texi
; \
152 $(SED_I
) '/^This manual corresponds to $(CODENAME_PATTERN)Gnus v/s,$(CODENAME_PATTERN)Gnus v$(OLD_PATTERN),Gnus v$(VERSION),' texi
/gnus.texi
; \
153 $(SED_I
) '/^corresponding to this manual is $(CODENAME_PATTERN)Gnus v/s,$(CODENAME_PATTERN)Gnus v$(OLD_PATTERN),Gnus v$(VERSION),' texi
/message.texi
; \
157 $(MAKE
) release-diff-commit-files
159 # Add ChangeLog entry...
160 release-add-changelog
: release-check-settings
161 @echo
"Updating ChangeLog files..."
162 @if grep
-q
"$(CODENAME)Gnus v$(VERSION) is released" ChangeLog
; then \
163 echo
"ChangeLog is already updated"; \
165 $(SED_I
) "1s|^|`date -I` $(COMMITTER)\n\n\t* README: $(COMMIT_STRING)\n\n|" ChangeLog
; \
167 @if grep
-q
"$(CODENAME)Gnus v$(VERSION) is released" etc
/ChangeLog
; then \
168 echo
"etc/ChangeLog is already updated"; \
170 $(SED_I
) "1s|^|`date -I` $(COMMITTER)\n\n\t* ChangeLog: $(COMMIT_STRING)\n\n|" etc
/ChangeLog
; \
172 @if grep
-q
"$(CODENAME)Gnus v$(VERSION) is released" texi
/ChangeLog
; then \
173 echo
"texi/ChangeLog is already updated"; \
175 $(SED_I
) "1s|^|`date -I` $(COMMITTER)\n\n\t* gnus.texi, gnus-faq.texi, message.texi: $(COMMIT_STRING)\n\n|" texi
/ChangeLog
; \
177 @if grep
-q
"$(CODENAME)Gnus v$(VERSION) is released" lisp
/ChangeLog
; then \
178 echo
"lisp/ChangeLog is already updated"; \
180 $(SED_I
) "1s|^|`date -I` $(COMMITTER)\n\n\t* gnus.el: $(COMMIT_STRING)\n\n|" lisp
/ChangeLog
; \
182 $(MAKE
) release-diff-commit-files
184 release-diff-commit-files
: release-check-settings
185 cvs diff
-U0
$(RELEASE_COMMIT_FILES
); sleep
2
187 release-revert-files
:
188 rm -i
$(RELEASE_COMMIT_FILES
)
189 cvs update
$(RELEASE_COMMIT_FILES
)
191 release-commit
: release-check-settings
194 @echo
"Really do the release-commit for $(CODENAME)Gnus v$(VERSION)?"
195 @echo
"Command line:"
196 @echo
" " cvs commit
-m
"$(COMMIT_STRING)" $(RELEASE_COMMIT_FILES
)
198 @echo
"Hit RET to continue or Ctrl-C to abort."
201 cvs commit
-m
"$(COMMIT_STRING)" $(RELEASE_COMMIT_FILES
)
203 @echo
"Add tag $(TAG) to CVS?"
204 @echo
"Command line:"
205 @echo
" " cvs tag
$(TAG
)
206 @echo
"Hit RET to continue or Ctrl-C to abort."
211 release-files
: release-make-tar-ball release-diff
212 @echo
"Release files have been created:"
213 @ls
-l
$(CIN
)gnus-
$(VERSION
).
tar.gz
214 @ls
-l
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
216 release-files-signed
: release-files release-sign-files
218 # Sign prepared files:
220 if
[ "x$$GPG_AGENT_INFO" = "x" ]; then \
221 read
-sp
"Enter pass phrase: " phrase
; \
222 gpg_opt
="--passphrase-fd 0"; \
224 gpg_opt
=""; phrase
=""; \
226 for i in
$(CIN
)gnus-
$(VERSION
).
tar.gz \
227 $(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
; do \
229 echo
"$$phrase" | gpg
--detach-sign
$$gpg_opt $$i; \
231 @ls
-l
$(CIN
)gnus-
$(VERSION
).
tar.gz
{.sig
,}
232 @ls
-l
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
{.sig
,}
233 @gpg
--verify
$(CIN
)gnus-
$(VERSION
).
tar.gz
{.sig
,}
234 @gpg
--verify
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
{.sig
,}
236 release-cvs-export
$(CIN
)gnus-
$(VERSION
): release-check-settings
237 rm -fr
$(CIN
)gnus-
$(VERSION
)
238 cvs
export -d
$(CIN
)gnus-
$(VERSION
) -r
$(TAG
) gnus
240 release-make-tar-ball
: $(CIN
)gnus-
$(VERSION
)
241 [ -d
$(CIN
)gnus-
$(VERSION
) ] && cd
$(CIN
)gnus-
$(VERSION
) && \
242 rm $(CVS_IGNORE_FILES
) || true
243 tar zcvf
$(CIN
)gnus-
$(VERSION
).
tar.gz
$(CIN
)gnus-
$(VERSION
)
244 ls
-l
$(CIN
)gnus-
$(VERSION
).
tar.gz
246 # Make a diff between current and previous release. Example:
247 # ftp://quimby.gnus.org/pub/gnus/ding-patches/gnus-5.10.5-5.10.6.diff.gz
248 release-diff
: release-check-settings
249 cvs diff
-r
$(OLD_TAG
) -r
$(TAG
) | sed
-e
'/^\? /d' > temp.diff || true
250 mv temp.diff
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff
251 $(GZIP_PROG
) $(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff
252 ls
-l
$(CIN
)gnus-
`echo $(OLD_TAG)%$(TAG)|tr - .|tr -d v|tr % -`.diff.gz
254 release-post-clean
: release-check-settings
255 rm -fr
$(CIN
)gnus-
$(TAG
) temp.diff
257 # # # # # # # # # # End of release targets
259 # Tell versions [3.59,3.63) of GNU make to not export all variables.
260 # Otherwise a system limit (for SysV at least) may be exceeded.