1 In order to perform a release, a few steps have to be taken:
3 [ ] = Should be automated
7 [Prepare codebase for release]
8 # [@] Run tests/multitest.php, fix any errors
9 # [@] Run `php update-for-release $VERSION` (bumps version numbers)
10 # [if necessary] Bump version numbers in TODO
11 # Write new WHATSNEW entry
12 # Commit as "Release x.y.z." and push
13 # [ ] Tag and push the release
14 . `git tag -u 0x869C48DA vx.y.z` (this is Edward's master private key;
15 substitute with your own if you're making a release. Use tag message
16 "HTML Purifier x.y.z")
18 # [@] `./build-all.sh ../../htmlpurifier x.y.z` in releases: Build the zip and tar.gz
19 # [@] Upload files with `upload-all.sh x.y.z`
21 ( Should get some sort of repos that contains just the pristine tarballs/zips??? )
23 # [ ] Build the PEAR release
24 - git clone htmlpurifier htmlpurifier-pristine
25 - cd htmlpurifier-pristine
26 - cp ../updated-pear/package.php
30 NOTE: If you need to setup the PEAR environment, setup PEAR first, then:
31 pear install PEAR_PackageFileManager2
32 # this is actually a somewhat gnarly knot of dependency jumps
33 # from Ubuntu. First thing to do is pear upgrade-all, then
34 # run this with --alldeps and manually install the ones that
36 pear channel-discover htmlpurifier.org
37 # [@] Run `./sum-all.sh x.y.z` (generates sha1 checksums)
38 # [@] Run `./sign-all.sh x.y.z`, enter password when prompted (signs releases)
39 # Update the webpages:
40 - news/YEAR/MODA-name.xhtml
41 . Write a news entry describing the release (see WHATSNEW)
42 - news/YEAR/MODA-name.txt
43 . Use: news item on webpage (add link to webpage as HTML Purifier),
44 download links (substitute in htmlpurifier.org), sha-1 sums.
45 . Sign using `gpg -u 0x869C48DA --clearsign filename` then move *.txt.asc over *.txt original
47 . Bump version number and date
48 - Update submodule live/
53 - Full-disclosure for security problems in previous release
54 # Commit and push and mirror.sh
55 cd /mit/ezyang/web_scripts/htmlpurifier
60 # svn import a clean Git checkout of the tag with the .git directory
62 svn import svn+ssh://ezyang@htmlpurifier.org/home/ezyang/svn/svnroot/htmlpurifier/tags/1.2.3
63 # [ BROKEN ] [@] Regenerate API documentation with `regenerate-docs.sh`
64 # Smoketest release by downloading packages, verify contents list, sha1 and sig
65 # Pirum the pear release
66 cd /mit/ezyang/web_scripts/htmlpurifier
67 cp ~/Dev/htmlpurifier-pristine/library/HTMLPurifier-4.10.0.tgz .
68 php pirum add . HTMLPurifier-4.10.0.tgz
69 # Regenerate configuration documentation
70 - Run http://htmlpurifier.org/live/configdoc/generate.php
71 # Update relevant feeder sites/lists
72 [ BROKEN ] - Announce mailing list <https://panel.dreamhost.com/?tree=mail.list¤t_step=Index&next_step=ShowSend&address=admin&domain=htmlpurifier.org>
73 - htmlpurifier@mit.edu
74 # Add new version items in NEWS for trunk
76 - Run http://htmlpurifier.org/xhtml-compiler/update.php
77 - Run http://htmlpurifier.org/xhtml-compiler/htaccess.php