summaryrefslogtreecommitdiff
path: root/Master/tlpkg/doc/releng.txt
blob: 82f8fa28b0877038dae4635b98abec3e46390e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
$Id$
Public domain. Release engineering for TeX Live, that is,
notes on putting together the pretest and yearly release.

See ./packages.txt for info on regular updates, adding/removing platforms, etc.

Coordinate/announce schedule with:
 maintainers of: engines, LaTeX, GUST font, asymptote, context, texworks
 other parts of collection: protext, ctan, mactex.
 general lists

Check if pretest mirrors need renewing, talk to mirror admins if so:
 https://tug.org/texlive/mirmon/
 /home/httpd/html/texlive/mirmon/tlpretest-mirrors.txt

To stop updating of certain packages before the general freeze:
 tlpkg/dev/tlnet-disabled-packages.txt

To run test builds (if developing infrastructure changes) without
affecting production dirs, see:
 tlpkg/bin/tltestnet


 Part I. Preparation; can/should be done before pretest starts.

1. doc: write updates for pretest.html, but leave commented out until start.
 - check NEWS/CHANGES/etc. files for all engines and major programs;
   ask developers as needed.
 - diff new and old bindirs to see if there are interesting new programs:
  \ls /usr/local/texlive-rel/bin/x86_64-linux >/tmp/now
  \ls $ib >/tmp/new
  comm -3 /tmp/now /tmp/new >/tmp/bd
 - in general, writing these news items takes considerable time, but
   it's important, because this summary of changes is what users want to know.
 - if new kpathsea file types (kpsewhich --help-formats), update kpathsea.texi.
 - see also doc item below for more necessary updates after pretest starts.
 
2. Ask tldistro for patches.

2. No /dev suffix: Build/source/{version.ac,texk/{kpathsea,ptexenc}/version.ac

3. Check/update copyright years: *.pm, tlmgr*, install-tl, tlpkg/installer

4. Check for upstream releases: {libs,texk,utils}/README

5. When finalizing sources (any time in the new year, can be early,
    before initial builds in any case),
   update version numbers, years, copyright years,
   and/or remove /dev suffix in
     (if not already done, of course; don't double-increment)
     (and write ChangeLog entries):
  top level version.ac
  dvipdfm-x:configure.ac dvipdfmx.c xbb.c
  dvipsk:   configure.ac NEWS dvips.c dvips.h afm2tfm.c dvips.texi
  mendexk,
  upmendex: COPYRIGHT main.c
  kpathsea: version.ac NEWS kpsewhich.c doc/kpathsea.texi texmf.cnf
  ptexenc:  version.ac
  web2c:    NEWS doc/web2c.texi
  	    mplibdir/mp.w
            ptexdir/ptex-base.ch,ptex_version.h
            pdftexdir/pdftex.web pdftexdir/pdftex_version.h
            xetexdir/xetex.web xetexdir/xetex_version.h
            lib/printversion.c
  check *.c *.h sources in above for needed copyright year updates too.
  check tlpkg/dev/srclist.txt for automake major version update.
  then reautoconf (~4min), rebuild (~25min).
  install-tl, tlmgr.pl (copyright only)
  run ~karl/bin/tlversions to see+compare engine/etc. versions
  commit updates.

6. During the pretest, we want to keep updating tlnet. But we cannot do
that from the trunk, since the trunk will have the new binaries and
other changes. Therefore, we set up a branch for release YYYY where we
will continue to commit normal package updates and update tlnet, while
the trunk is updating tlpretest for YYYY+1.

The branch must be created right before the first pretest-specific
commit (which is the next item, in Part II).

  cd /home/texlive/branch
  rm -rf * .svn # clean out completely; trunk should also be clean
  rev=57871 # for 2021 (svn info in trunk)
  tlyear=`date +%Y -d "last year"` # presumably
  umask 022 # keep TL files non-group-writable
  branch=branch$tlyear.final
  svn copy -r $rev \
    -m"$branch branch based on r$rev" \
    svn://tug.org/texlive/trunk svn://tug.org/texlive/branches/$branch
  # make working checkout:
  svn co svn://tug.org/texlive/branches/$branch . >&out # ~30min

Do not create it earlier and merge from trunk, because then all the
packages which got updated in the meantime, and have been updated in
tlnet, will get new revision numbers (from the commit after the merge)
and get updated again.


 Part II. Building pretest from trunk (and tlnet from branch).

0. Ensure that /home/texlive/branch from before last pretest-specific
commit is created, clean, and up to date: see item 6 just above.

0b. In crontab, disable trunk->tlnet entries.

1. When ready to start building tlpretest: on trunk, set
  option adjustrepo 0
in tl-update-tlnet since pretest users shouldn't go to CTAN for updates.
This change should not go to the branch.

1b. Set up tlpretest:
Update /home/ftp/texlive/tlpretest/README.
Empty tlpretest except for that README and 00_TIME.txt (used for mirmon).

2. Prepare for pretest in cron.tl:
critical=--critical	 # tlcritical needed for new release version
pretest=--pretest	 # update tlpretest, not tlnet (if not frozen)
catalogue_compare=false  # just for the initial test, will set below
net_frozen=true 	 # update tlnet|tlpretest (per $pretest)
First build happens below, after many more changes; don't start it yet.

4. After setting up for pretest (not before), basic updates for release year:
Master/.mkisofsrc
Master/release-texlive.txt
Master/tlpkg/TeXLive/TLConfig.pm -- $ReleaseYear and think about $MinRelease
Master/tlpkg/TeXLive/TLUtils.pm  -- $mactex_darwin and -darwin strings
Master/tlpkg/bin/tl-update-images
Master/tlpkg/bin/tl-update-messages 
Master/tlpkg/bin/tl-update-tlnet
Master/tlpkg/installer/*.png
  (make -C Master/tlpkg/doc/graphics -W texlive-installer-graphics.tex texlive.png)
  then mv into place.
Master/texmf-dist/web2c/texmfcnf.lua
Master/texmf-dist/web2c/texmf.cnf  # from Build/.../kpathsea
  (also ensure that the Build and Master texmf.cnf files are in sync)

5. Ensure version numbers in sources are updated; see list above.
Then install new binaries with tl-update-bindir. Ask tlbuild.
Add new executables to appropriate .tlpsrc files (likewise removals).
  (svn status bin/x86_64-linux | grep '^[^M]')
Add new scripts to linked_scripts if not already handled.

6. Run tex \\end to check that mktexfmt works. 
Also run fmtutil-user --all to check that all formats build, no config file
problems.  Ensure that web2c/texmf.cnf is updated for the current year
(per above).  Then, so things will get redone later as another check:
  rm -rf ~/.texlive`date +%Y`  # the new one
(For karl@tug.org: create at least pdflatex.fmt and xelatex.fmt for bnb.)

7. Check for Build-maintained updates to config files, new files, etc.
(might have to merge back if Master was mistakenly updated):
  diff -ru0 --exclude=man --exclude=info \
    Build/source/inst/texmf-dist Master/texmf-dist

7a. If new cjk release:
cd Master/texmf-dist/doc
for p in *conv hbf2gf; do cp /home/ftp/tex-archive/language/chinese/CJK/cjk-X.Y.Z/doc/pdf/$p.pdf $p; done

8. Now, finally, try a first update of tlpretest:
  force_rebuild=true cron.pretest
This will fail because the pretest dir is not yet set up, but
that's ok; the idea is to check the output and ensure all is basically ok.
It's likely that .tlpsrc files will need to be adjusted for new binaries.

8a. svn commit all the above.

9. After a trial build goes ok, set up tlpretest:
  cd /home/ftp/texlive/tlpretest
  cp -ar ../tlnet/[a-u]* .  # omit tlnet/README*
  env force_rebuild=true cron.pretest  # update repository
We use cp -a because we want to start with exactly the last tlnet,
and not recreate all packages, so that a file with a given name is never
rewritten. See recreate comments in tl-update-tlpdb and tl-update-containers.

9b. Sanity check: Do an installation as a normal user from the new
tlpretest, and keep it updated daily.

9c. In 2020, as a special case, after a first successful build, this was run:
  tl-fix-container-links
In order to make all the archive/*.tar.xz files into versioned symlinks,
so a given tarball will not be regenerated unless the content changes.
This was a one-time event, but left here as an example for the unknown future.

10. As of 2021, we want to keep updating tlnet from the new branch, as
described in I.6. For sanity, it is best to edit cron.tl to use a temp
destination instead of tlnet for the branch, initialize that repo from
tlnet (as above with tlpretest), and then do a test build before the
real one. To do the build:
  env force_rebuild=true cron.branch

11. In cron.tl, set net_frozen=false, critical= , and
    return to regular catalogue_compare updates.
    In the crontab, enable the pretest entries.

12. Life and daily updates resume: run c2l to update trunk->tlpretest,
    c2b to update branch->tlnet. Of course, don't update the branch if a
    particular package requires the new binaries, e.g., asymptote.
    
13. Announce: make new pretest.html live; mention pretest has started
    on texlive/index.html and tug's home page (at least).
    Email tex-live@tug.org.


A. At some point during the pretest:
  Update gpg expiration, see tlpkg/gpg/tl-key-extension.txt;
    do not fail to do this, or the key will expire and cause lots of hassle.
  Run tl-update-linked-scripts to ensure consistency.
  In Master/tlpkg, update bundled Windows programs as needed:
    dviout texworks tlgs tlperl tlpsv
  In tlpkg/installer, update xz lz4 wget if needed (+ Master/source).
  Update readme-html.dir/readme.en.html if needed,
    run tlpkg/bin/htmltext to create readme-txt.dir/README.EN.

B. Specifics for tlperl update:
  cd $pg
  find tlperl -type f | \grep -v README.TEXLIVE | sort >/tmp/now
  zipinfo -1 newperl.zip | \grep -v /\$ | sort >/tmp/new
  unzip -q newperl.zip  # replace All files
  comm -13 /tmp/now /tmp/new >/tmp/c2
  comm -23 /tmp/now /tmp/new >/tmp/c1
  wc -l /tmp/c1 /tmp/c2 # should be about 100-200, not 1500+
  svn rm `cat /tmp/c1`
  svn add --parents --no-auto-props `cat /tmp/c2`
  svn status | fgrep \? # shouldn't be any besides newperl.zip
  find tlperl -name \*.dll -o -name \*.exe | xargs svn propset svn:executable 1
  find tlperl -type d -empty | xargs svn rm  # repeat until no output
  update tlperl/README.TEXLIVE
  svn commit when ready ...

C. Build a test ISO image for initial TeX Collection testing:
  In tl-update-images, ensure V= the new YYYY and target=/.../test
  env images_frozen=false cron.pretest
  After successful image build, update /home/ftp/texlive/Images/test/README
  and email tldistro@tug.org for info/review.
  Can disable image building again after the initial build for a while.

M. As pretest proceeds, update the doc:
  MetaPost (in texmf-dist), other engine (in source) NEWS.
  Ensure all engine manuals updated in texmf-dist.
  Update texlive-en.tex (+ .pdf, .html), tell tldoc to translate.
    Update year numbers by one,
    example text menus and GUI screenshots,
    write news section,
    update "Builders of the binaries" and "Translators of this manual",
    any new people to thank,
    and changes throughout if behavior has changed.
  Update tlbuild.texi text, then
    W=.../Build/source/Work
    make -C $W/doc script-links tlbuild-incl.texi readme-files readme-install
    cd .../Build/source
  Consider updates of core man pages in Build/source/texk/web2c/man.
  Remake updmap,fmtutil man pages with help2man:
    tm=.../Master
    make -C $W/texk/texlive/tl_support xupdmap.1 xfmtutil.1
    x1=`(unset CDPATH; cd $Master/texmf-dist/doc/man/man1; pwd)`
    They must be moved from /tmp into Master by hand:
      mv /tmp/xupdmap.1 $x1/updmap.1
      mv /tmp/xfmtutil.1 $x1/fmtutil.1
    Also update them in ~www/texlive/doc/*.html:
      groff -mandoc -Thtml $x1/updmap.1 >$lw/doc/updmap.html
      groff -mandoc -Thtml $x1/fmtutil.1 >$lw/doc/fmtutil.html
    While we're here, let's update the other generated html files:
      pod2html --cachedir=/tmp $xx/tlmgr.pl >$lw/doc/tlmgr.html
      pod2html --cachedir=/tmp $tm/install-tl >$lw/doc/install-tl.html
    Update copies in the Master tree (also done nightly in tl-update-auto):
      cp $lw/doc/{tlmgr,install-tl}.html $tm/texmf-dist/doc/texlive
  Man pages from Build to Master (after doing a build):
    tl-update-man # consider removals from output, if any binaries are gone
    # check /tmp/so.rules against man1/Makefile, update if needed.
    cd $x1/..
    make  # remakes pdfs
    # files to add:
    svn status . | sed -n 's/^\?//p'
    svn add `!!`
  Texinfo manuals from Build to Master:
    tl-update-txi
  Don't forget to commit everything (texmf-dist/doc, Build/source, ...).

N. Really test during and at end of pretest that
    (really! don't leave it for post-release failure)
  .fmt's sharable are across endian/word-different platforms,
  including luatex:
    tlpkg/bin/tl-check-fmtshare RHOST:RDIR
  where RHOST is a host you can ssh to with different specifications
  than the local host, and RDIR is a TL:Build/source/Work/texk/web2c/
  build directory. (Must build TL there first before running, naturally.)
  Nelson Beebe has a wide variety of hosts available.

O. Test that basic interactive Metafont is still working:
    mf '\drawdot (50,50); showit;'  % and from * prompt

W. Two days before the final pretest (i.e., to-be-published) build:
  Put date into NEWS and ChangeLog files above.
  Update Build/source/tardate.ac && reautoconf.
  tlmgr version number in texmf-dist/scripts/texlive/NEWS.
  In cron.tl, set catalogue_compare=true for final syncs.
  Run make distclean in Build/source/utils/asymptote
    to aviod that build junk ending up in the source tarball.
  Reenable images_frozen=false so we get the new sources,
    or can run tl-update-images --tar-source-only
    and --tar-devsource-only to just build the necessary tarballs
    for Master/source if you don't want to do a whole build.
  Tell developers no more commits: tldev +
    hirata, hironori, luigi, mojca, takuji, 

X. The day before the final pretest:
  In cron.tl, catalogue_compare=false to avoid skew.
  In tl-update-tlnet, option adjustrepo 1, else install-tl-unx won't go to ctan
  Update Master/source (if not earlier):
    xz wget w32tex-src texlive*source mactexdoc install-tl-unx.tar.gz 

Y. The day of the final tlnet-from-branch build, which may or may not
   also be the day of the final tlpretest-from-trunk build:
 Set frozen=>1 in branch TLConfig.pm.
 Freeze of tlnet should happen at that night's rebuild.

Z. After final build, to do total freeze:
  In cron.tl, set *_frozen=true.
  Also, set catalogue_compare=false now or at some point earlier.
  For double protection, disable the nightly cron jobs.
  Also, in /l/bin/mirror-ctan, disable Catalogue updates,
   to avoid unnecessary changes if we have to rebuild the final image.

Z0. Ask for torrents to be created. In 2021,
  Tim Stewart <timoteostewart1977@gmail.com>
  made the one that worked.

Z1. Preserve Catalogue as of the freeze, for the sake of
    post-freeze updates:
rsync -ar /home/httpd/html/catalogue /home/texlive/catalogue-freeze
    If such post-freeze updates are required (let's hope not),
    see tlpkg/archive/tlnet-by-hand.txt.


 Part III. Making the big release:

- unmount live install of last year's:
umount /home/ftp/texlive/Contents/live

hx=/home/ftp/historic/systems/texlive
prev=`date -d "last year" +%Y`; echo $prev
this=`date +%Y`; echo $this
mkdir $hx/$this
chgrp texlive !$
chmod g+ws !$

cd /home/ftp/texlive/Images
cp README.md $hx/$prev/
mv -v *.iso* *.torrent* $hx/$prev/
mv -v test/texlive*.iso* .
mv -v test/texlive*.tar.xz* $hx/$this/	# tar version only in historic
update README.md (touch even if no real changes needed)
   and test/README (pretest over)

- mactex (from tlpretest)
hm=/home/ftp/historic/systems/mactex
mkdir $hm/$prev/
cd ~ftp/tex/mactex
chgrp mactex *; chmod g+w *
mv -v *.pkg* $hm/$prev
mv -v ~ftp/texlive/tlpretest/mactex*pkg* .
ln -sv mactex-20*.pkg MacTeX.pkg 
ln -sv mactex-basic*.pkg BasicTeX.pkg
ln -sv mactex-ghost*.pkg Ghostscript.pkg
for p in [BGM]*.pkg; do md5sum $p >$p.md5; done &  # used on mactex web pages
edit README
chgrp mactex *; chmod g+w *
mkdir $hm/$this/
cp -v Extras*.pdf MacTeXtras-*.zip $hm/$this

- move rest of tlnet to historic, as tlnet-final:
We keep updating the $prev release while doing the pretest for $this,
 so moving the current tlnet is what's needed:
mkdir $hx/$prev/tlnet-final
chgrp texlive !$
chmod g+s !$
cd /home/ftp/texlive/tlnet
mv [a-z]* $hx/$prev/tlnet-final

- move tlpretest to tlnet, to make the release
mv ../tlpretest/[a-z]* .
update README.md (touch even if no real changes needed)
   and ../tlpretest/README.md (pretest over)
cp install-tl-unx.tar.gz install-tl.zip $hx/$this/
touch TEXLIVE_$this # empty file to signal new version

- Source directory for CTAN:
fx=/home/ftp/tex
ls $fx/texlive/Source/* # ensure last year's sources
rm -f !$
cp -av $tm/source/{install-tl,texlive-,w32tex-}*z $fx/texlive/Source/
cp -av $tm/source/{install-tl,texlive,w32tex}*README $fx/texlive/Source/

- historic copy of TL web pages:
cd /home/httpd/html/texlive
mkdir $hx/$prev/web/
cp *.html !$  # disable header.html include in bugs.html

- copy full (unpruned) tlpdb to historic:
# the pre-pruned tlpdb directory is created by tl-update-images.
preprune=/home/ftp/texlive/Images/test/preprune-tlpdb
ls -l $preprune # ensure tlpdb and xz and checksums
tgz=/tmp/texlive-${this}0325-tlpdb-full.tar.gz # release date, not today's
(cd $preprune && tar cvzf $tgz texlive.tlpdb texlive.tlpdb.*5*)
mv $tgz $hx/$this/
rm -rf $preprune

- update local CTAN area, just to avoid mirroring everything back again:
cy=/home/ftp/tex-archive/systems
rm -rf $cy/texlive/tlnet/*; cp -ar * $cy/texlive/tlnet/
rm $cy/texlive/Images/*; cp -a ../Images/*.* $cy/texlive/Images/
rm $cy/texlive/Source/*; cp -a $tm/source/{install-tl,texlive-,w32tex-}*z $cy/texlive/Source/
rm $cy/mac/mactex/*; cp -a $fx/mactex/* $cy/mac/mactex/

- tug.org stuff:
change fstab 
mount /mnt/tl
cd /mnt/tl
TEXLIVE_INSTALL_NO_WELCOME=1; export TEXLIVE_INSTALL_NO_WELCOME
echo i | time nice -19 perl install-tl # do full install to default location.
  # takes about 30min
rm /usr/local/texlive-rel; ln -s texlive/$this /usr/local/texlive-rel
ls !$
newsrc=!$/source
mkdir $newsrc
chgrp texlive !$; chmod g+ws !$
cp -v source/{install-tl,texlive,w32tex}*.tar.?z $newsrc
ls -l !$
mount /home/ftp/texlive/Contents/live
cd
umount /mnt/tl

update ~www/texlive web pages (search for $prev and $prev-1):
  acquire* - general
  bugs.html - news from pretest.html, also case of $prevprev at bottom
  build.html - platform list
  custom-bin.html - remove any old, add any new
  doc.html - platform list, translation list
  pretest.html - done for this year, transfer bugs and news
  quickinstall.html - paths
  upgrade.html - whether possible or not
  tlmgr-news.html - from texmf-dist/scripts/texlive/NEWS
  index.html - dates
check for new Texinfo manuals to link to html versions, and if any,
make a new link in:
  ~www/texinfohtml/

- update historic/systems with final proTeXt, when ready.
  https://bscw.fernuni-hagen.de
  ftp://ftp.fernuni-hagen.de/pub/windows/win32/ProTeXt/
  ~www/protext/index.html

- announcements:
CTAN @ ISO update: remove old version, re-enable tlnet mirroring, MacTeX.
Dick @ updating MacTeX web pages.
Siep @ windows.html, Norbert @ debian,updmap-kanji.html.
pdftex maintainers @ updating pdftex sources with sync-pdftex.sh + tag.
tex-live, tldistro @ release made.

- make tag + branch:
Before: Determine revision number from svn log
 or https://tug.org/pipermail/tex-live-commits/
 in case commits were mistakenly made.
Also: look at https://tug.org/svn/texlive/tags/ to get subnum
 and https://tug.org/svn/texlive/branches/ to avoid duplication.
rev=58693
subnum=1 # increase as necessary if multiple branches needed
tlyear=`date +%Y`; echo $tlyear # maybe previous year during pretest, as above
svn copy -r $rev \
 -m"texlive-$tlyear.$subnum tag based on r$rev" \
 svn://tug.org/texlive/trunk \
 svn://tug.org/texlive/tags/texlive-$tlyear.$subnum
#
svn copy -r $rev \
  -m"branch$tlyear branch based on r$rev" \
  svn://tug.org/texlive/trunk \
  svn://tug.org/texlive/branches/branch$tlyear[.$subnum]
  # add .$subnum to branch name (and in comment) if not making the first.

  It's the same command, just different destinations.
  http://svnbook.red-bean.com/en/1.8/svn.branchmerge.html

  We do both a branch and a tag so that it's possible to easily compare
  the current state of the branch with its starting point (the tag).

  To check out the branch, for critical source fixes for the sake of
  during-the-year rebuilds or for the distros, if they request it:
this=`date +%Y`; echo $this  # whatever year is appropriate
cd /home/texlive
rm -rf branch # when starting a new year on tug
mkdir branch
cd branch
svn co svn://tug.org/texlive/branches/branch$this/Build/source . >&out

  Edit (inside the branch) as desired.
  Do a test build, commit when successful.
  Ask for rebuilds,
  When (enough) rebuilds are done, commit to the branch and make another tag:
  brev=nnnnn  # branch commit revision, e.g., 51236
  btag=yyyy.n # next branch tag, e.g., 2021.3
#svn copy -r $brev -m"texlive-$btag tag based on r$brev, with <whatever> fix" \
#   svn://tug.org/texlive/branches/branch2021 \
#   svn://tug.org/texlive/tags/texlive-$btag
  (Using urls makes for an immediate commit, which is what we want.)

By the way, in the event of a mistaken delete, the material is best
recovered with, where 57911 is the good revision to restore from:
  svn merge -r HEAD:57911 .
so as to keep the version history, which retrieving the files and
re-adding would not do. (But renamed files are not handled, it seems.)

- update ~karl/bin/cron.tl, be sure cron.pretest and cron.branch are disabled,
and reenable cron.trunk when feel ready:
critical=
images_frozen=true
net_frozen=false
all_frozen=false

 after TC release:
- texcollection
hy=/home/ftp/historic/systems
mkdir -p $hy/texcollection/$this/packaging
#
# copy files from DVD:
mount /mnt/tc
cd /mnt/tc # check that it's the current release
cp -pR [A-T]* index* setup /home/ftp/historic/systems/texcollection/$this
#
# copy ctan snapshot for TUG members:
du -h ~www/members/ctan*20*.tar # just to compare
mkdir $hy/ctancd/$prev
mv ~www/members/ctan*20*.tar !$
ls -lt ctan/ | head # note date of last update
nice -19 tar cf ~www/members/ctan`date +%y`-0410.tar ctan # update date!
chmod a=r ~www/members/ctan*.tar
ls -l !$; du -h !$
# edit members/index.html
mkdir /home/ftp/historic/systems/ctancd/$this
ln -v ~www/members/ctan*.tar !$
#
cd && umount /mnt/tc
#
cd $hy/$this/packaging
# copy in files from texcollection svn:
svn -q update ~/src/texcollection/
cp -p ~/src/texcollection/$this/packaging/* .
#
# make small image for web page:
pdftoppm -r 222 texcoll-label.pdf temp
pnmcrop temp*.ppm | pnmtopng >~www/texcollection/texcollection$this.png
cp texcoll-cover.pdf ~www/texcollection/texcollection$this.pdf
#
~www/texcollection/index.html
~www/store/index.html
/home/httpd/cgi-bin/tug-common.pl
~www/forms/current/memberapp.html 
#
~www/rss/tug.xml
~www/index.html

- increment source versions, increment year+libversions and append /dev:
Build/source/{version.ac,texk/{kpathsea,ptexenc}/version.ac
reautoconf