]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/contributor/release-work.itexi
CG: set up a good environment for building.
[lilypond.git] / Documentation / contributor / release-work.itexi
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @node Release work
3 @chapter Release work
4
5 @menu
6 * Development phases::
7 * Minor release checklist::
8 * Major release checklist::
9 * Release extra notes::
10 @end menu
11
12
13 @node Development phases
14 @section Development phases
15
16 There are 2 states of development on @code{master}:
17
18 @enumerate
19
20 @item @strong{Normal development}:
21 Any commits are fine.
22
23 @item @strong{Build-frozen}:
24 Do not require any additional or updated libraries or make
25 non-trivial changes to the build process.  Any such patch (or
26 branch) may not be merged with master during this period.
27
28 This should occur approximately 1 month before any alpha version
29 of the next stable release, and ends when the next unstable branch
30 begins.
31
32 @end enumerate
33
34
35 After announcing a beta release, branch @code{stable/2.x}.  There
36 are 2 states of development for this branch:
37
38 @enumerate
39 @item @strong{Normal maintenance}:
40 The following patches @strong{MAY NOT} be merged with this branch:
41
42 @itemize
43 @item Any change to the input syntax.  If a file compiled with a
44 previous @code{2.x} (beta) version, then it must compile in the
45 new version.
46
47 Exception: any bugfix to a Critical issue.
48
49 @item New features with new syntax @emph{may be committed},
50 although once committed that syntax cannot change during the
51 remainder of the stable phase.
52
53 @item Any change to the build dependencies (including programming
54 libraries, documentation process programs, or python modules used
55 in the buildscripts).  If a contributor could compile a previous
56 lilypond @code{2.x}, then he must be able to compile the new
57 version.
58
59 @end itemize
60
61 @item @strong{Release prep}:
62 Only translation updates and important bugfixes are allowed.
63
64 @end enumerate
65
66
67 @node Minor release checklist
68 @section Minor release checklist
69
70 A @qq{minor release} means an update of @code{y} in @code{2.x.y}.
71
72 @subheading Pre-release
73
74 @enumerate
75
76 @item
77 Switch to the release branch, get changes, prep release
78 announcement:
79
80 @example
81 git checkout release/unstable
82 git merge origin
83 vi Documentation/web/news-front.itexi Documentation/web/news.itexi
84 @end example
85
86 @item
87 Commit, push, switch back to master:
88
89 @example
90 git commit -m "Release: update news." Documentation/web/
91 git push origin
92 @end example
93
94 @item
95 If you do not have the previous release test-output tarball, download
96 it and put it in @code{regtests/}
97
98 @item Prepare GUB environment by running:
99
100 @example
101 ### my-gub.sh
102 # special terminal, and default PATH environment.
103 # import these special environment vars:
104 #   HOME, HTTP_PROXY, TERM
105 env -i \
106   HOME=$HOME \
107   HTTP_PROXY=$HTTP_PROXY \
108   bash --rcfile my-bashrc
109 @end example
110
111 @example
112 ### my-bashrc
113 export PS1="\[\e[1;33mGUB-ENV \w\]$ \[\e[0m\]"
114 export PATH=$PATH
115 export TERM=xterm
116 @end example
117
118
119 @item Build release on GUB by running:
120
121 @example
122 make LILYPOND_BRANCH=release/unstable lilypond
123 @end example
124
125 @noindent
126 or something like:
127
128 @example
129 make LILYPOND_BRANCH=stable/2.12 lilypond
130 @end example
131
132 @item Check the regtest comparison in @file{uploads/webtest/} for
133 any unintentional breakage.  More info in
134 @ref{Precompiled regression tests}.
135
136 @item If any work was done on GUB since the last release, upload
137 binaries to a temporary location, ask for feedback, and wait a day
138 or two in case there's any major problems.
139
140 @warning{Always do this for a stable release.}
141
142 @end enumerate
143
144
145 @subheading Actual release
146
147 @enumerate
148
149 @item If you're not the right user on the webserver, remove the
150 @code{t} from the rsync command in:
151
152 @example
153 test-lily/rsync-lily-doc.py
154 test-lily/rsync-test.py
155 @end example
156
157 @code{graham} owns v2.13; @code{han-wen} owns v2.12.
158
159 @item Upload GUB by running:
160
161 @example
162 make lilypond-upload \
163   LILYPOND_REPO_URL=git://git.sv.gnu.org/lilypond.git \
164   LILYPOND_BRANCH=release/unstable
165 @end example
166
167 @noindent
168 or something like:
169
170 @example
171 make lilypond-upload \
172   LILYPOND_REPO_URL=git://git.sv.gnu.org/lilypond.git \
173   LILYPOND_BRANCH=stable/2.12
174 @end example
175
176 @end enumerate
177
178
179 @subheading Post release
180
181 @enumerate
182
183 @item Switch back to master and get the updated news:
184
185 @example
186 git checkout master
187 git merge release/unstable
188 @end example
189
190 @item Update @file{VERSION} in lilypond git and upload changes:
191
192 @example
193 vi VERSION
194 @end example
195
196 @itemize
197 @item
198 VERSION = what you just did +0.0.1
199
200 @item
201 DEVEL_VERSION = what you just did (i.e. is now online)
202
203 @item
204 STABLE_VERSION = what's online (probably no change here)
205
206 @end itemize
207
208 @example
209 git commit -m "Release: bump version." VERSION
210 git push origin
211 @end example
212
213
214 @item (for now) do a @code{make doc} and manually upload:
215
216 @example
217 ### upload-lily-web-media.sh
218 #!/bin/sh
219 BUILD_DIR=$HOME/src/build-lilypond
220
221 PICS=$BUILD_DIR/Documentation/pictures/out-www/
222 EXAMPLES=$BUILD_DIR/Documentation/web/ly-examples/out-www/
223
224 cd $BUILD_DIR
225 rsync -a $PICS graham@@lilypond.org:media/pictures
226 rsync -a $EXAMPLES graham@@lilypond.org:media/ly-examples
227 @end example
228
229 @item Wait a few hours for the website to update.
230
231 @item Email release notice to @code{info-lilypond}
232
233 @end enumerate
234
235
236
237 @node Major release checklist
238 @section Major release checklist
239
240 A @qq{major release} means an update of @code{x} in @code{2.x.0}.
241
242 @subheading Main requirements
243
244 This is the current official guidelines.
245
246 @itemize
247 @item
248 0 Critical issues for two weeks (14 days) after the latest release
249 candidate.
250
251 @end itemize
252
253
254 @subheading Potential requirements
255
256 These might become official guidelines in the future.
257
258 @itemize
259 @item
260 Check reg test
261
262 @item
263 Check all 2ly scripts
264
265 @item
266 Check for emergencies the docs:
267
268 @example
269 grep FIXME --exclude "misc/*" --exclude "*GNUmakefile" \
270   --exclude "snippets/*" ????*/*
271 @end example
272
273 @item
274 Check for altered regtests, and document as necessary.  (update
275 numbers in the following command as appropriate)
276
277 @example
278 git diff -u -r release/2.12.0-1 -r release/2.13.13-1 input/regression/
279 @end example
280
281 @end itemize
282
283
284 @subheading Housekeeping requirements
285
286 Before the release:
287
288 @itemize
289 @item
290 write release notes.  note: stringent size requirements for
291 various websites, so be brief.
292
293 @item
294 Run convert-ly on all files, bump parser minimum version.
295
296 @item
297 Make FTP directories on lilypond.org
298
299 @item
300 Website:
301
302 @itemize
303 @item
304 make a link from the old unstable to the next stable in
305 lilypond.org's /doc/ dir.  Keep all previous unstable->stable doc
306 symlinks.
307
308 Also, make the old docs self-contained -- if there's a redirect in
309 /doc/v2.12/Documentation/index.html , replace it with the
310 index.html.old-2.12 files.
311
312 The post-2.13 docs will need another way of handling the
313 self-containment.  It won't be hard to whip up a python script
314 that changes the link to ../../../../manuals.html to
315 ../website/manuals.html , but it's still a 30-minute task that
316 needs to be done before 2.16.
317
318 @item
319 doc auto redirects  to v2.LATEST-STABLE
320
321 @item
322 add these two lines to http://www.lilypond.org/robots.txt:
323
324 @example
325 Disallow: /doc/v2.PREVIOUS-STABLE/
326 Disallow: /doc/v2.CURRENT-DEVELOPMENT/
327 @end example
328
329 @end itemize
330
331 @end itemize
332
333 @subheading Unsorted
334
335 @itemize
336 @item
337 submit pots for translation: send url of tarball to
338 translation@@iro.umontreal.ca, mentioning lilypond-VERSION.pot
339
340 @item
341 update links to distros providing lilypond packages?  link in:
342 @file{Documentation/web/download.itexi}
343
344 This has nothing to do with the release, but it's a "periodic
345 maintenance" task that might make sense to include with releases.
346
347 @item
348 Send announcements to...
349
350 News:
351
352 @example
353 comp.music.research
354 comp.os.linux.announce
355
356 comp.text.tex
357 rec.music.compose
358 @end example
359
360 Mail:
361
362 @example
363 info-lilypond@@gnu.org
364
365 linux-audio-announce@@lists.linuxaudio.org
366 linux-audio-user@@lists.linuxaudio.org
367 linux-audio-dev@@lists.linuxaudio.org
368
369 tex-music@@icking-music-archive.org
370
371 --- non-existant?
372 abcusers@@blackmill.net
373
374 rosegarden-user@@lists.sourceforge.net
375 info-gnu@@gnu.org
376 noteedit-user@@berlios.de
377
378 gmane.comp.audio.fomus.devel
379 gmane.linux.audio.users
380 gmane.linux.audio.announce
381 gmane.comp.audio.rosegarden.devel
382 @end example
383
384 Web:
385
386 @example
387 lilypond.org
388 freshmeat.net
389 linuxfr.com
390 http://www.apple.com/downloads
391 harmony-central.com (news@@harmony-central.com)
392 versiontracker.com [auto]
393 hitsquad.com [auto]
394 http://www.svgx.org
395 https://savannah.gnu.org/news/submit.php?group_id=1673  @c => planet.gnu.org
396 @end example
397
398 @end itemize
399
400
401 @node Release extra notes
402 @section Release extra notes
403
404 @subsubheading Regenerating regression tests
405
406 Regenerating regtests (if the lilypond-book naming has changed):
407
408 @itemize
409
410 @item
411 git checkout release/lilypond-X.Y.Z-A
412
413 @item
414 take lilypond-book and any related makefile updates from the
415 latest git.
416
417 @item
418 configure; make; make test
419
420 @item
421 tar -cjf lilypond-X.Y.Z-A.test-output.tar.bz2 input/regression/out-test/
422
423 @item
424 mv lilypond-X.Y.Z-A.test-output.tar.bz2 ../gub/regtests/
425
426 @item
427 cd ../gub/regtests/
428
429 @item
430 make lilypond
431
432 @end itemize
433
434
435 @subsubheading stable/2.12
436
437 If releasing stable/2.12, then:
438
439 @itemize
440
441 @item
442 apply doc patch: patches/rsync-lily.patch  (or something like
443 that)
444
445 @item
446 change infodir in gub/specs/lilypond-doc.py from "lilypond.info"
447 to "lilypond-web.info"
448 @end itemize
449
450 @subsubheading Updating a release (changing a in x.y.z-a)
451
452 Really tentative instructions, almost certainly can be done
453 better.
454
455 @enumerate
456
457 @item
458 change the VERSION back to release you want.  push change.
459 (hopefully you'll have forgotten to update it when you made your
460 last release)
461
462 @item
463 make sure that there aren't any lilypond files floating around in
464 target/  (like usr/bin/lilypond).
465
466 @item
467 build the specific package(s) you want, i.e.
468
469 @example
470 bin/gub mingw::lilypond-installer
471 make LILYPOND_BRANCH=stable/2.12 -f lilypond.make doc
472 bin/gub --platform=darwin-x86 'git://git.sv.gnu.org/lilypond-doc.git?branch=stable/2.12'
473 @end example
474
475 or
476
477 build everything with the normal "make lilypond", then (maybe)
478 manually delete stuff you don't want to upload.
479
480 @item
481 manually upload them.  good luck figuring out the rsync
482 command(s).  Hints are in test-lily/
483
484 or
485
486 run the normal lilypond-upload command, and (maybe) manually
487 delete stuff you didn't want to upload from the server.
488
489 @end enumerate
490
491
492