1 How to make a new release of GNU Stow
2 =====================================
7 First read the official information for maintainers of GNU software:
9 https://www.gnu.org/prep/maintain/
14 - Ensure configure.ac contains the number of the new unreleased
15 version. This should follow Semantic Versioning as described at:
19 - To make the following steps easier, set the $version shell variable
20 to the same version number as above, e.g.
22 version=$( tools/get-version ) && echo $version
24 - Ensure NEWS contains the latest changes, and that any new
25 contributors have been added to THANKS. If necessary, commit
28 git commit -m "Prepare NEWS and THANKS for $version release"
30 - Check CPAN distribution will work via Module::Build:
32 - Start from a clean slate:
37 - Generate stow, chkstow, and lib/Stow.pm via:
39 eval `perl -V:siteprefix`
40 automake --add-missing
41 ./configure --prefix=$siteprefix && make
43 (N.B. the CPAN distribution will contain these files, whereas
44 the GNU distribution will not.)
46 - Make sure all the following commands all run successfully:
48 perl Build.PL --prefix=/tmp/stow-test
55 - Check META.yml and META.json have the new version number.
56 They already should if the final step of this document was
57 carried out after the previous release was publised, but
60 git commit -m "Bump version to $version"
62 - Ensure all changes are committed to git.
64 - Run make distcheck and ensure that everything looks good.
65 It should generate the distribution files for you.
67 - Run the tests on various Perl versions via Docker:
72 Obviously if there are any failures, they will need to be fixed
73 first, and then repeat the above steps.
75 - At this point we have a release candidate. Tag the current git HEAD
76 with the new version number:
78 git tag -s v$version -m "Release $version"
80 - Upload the resulting Stow-v7.8.9.tar.gz to CPAN via https://pause.perl.org/
82 - Wait until PAUSE has accepted the upload as a valid module. If you
83 are the maintainer of the module, you should receive two email
84 notifications: a CPAN upload confirmation, and a PAUSE indexer
85 report. This provides some valuable final validation, as learnt the
86 hard way during the non-release of 2.2.1.
88 - Push HEAD and tag to savannah and GitHub:
90 git push savannah master
91 git push --tags savannah
92 git push github master
93 git push --tags github
95 - Upload the new release to ftp.gnu.org. This is easiest using gnupload:
97 - git clone git://git.savannah.gnu.org/gnulib.git
98 - Copy gnulib/build-aux/gnupload to somewhere on your $PATH
99 - Run gnupload --to ftp.gnu.org:stow --symlink-regex stow-7.8.9.tar.*
101 - Regenerate the documentation for the website:
103 # First check out gnulib repository via:
104 # git clone git://git.savannah.gnu.org/gnulib.git
106 # and stow-web CVS repository via the instructions here:
107 # https://savannah.gnu.org/cvs/?group=stow
110 stow_repo=/path/to/stow/git/repo
111 stow_web_repo=/path/to/stow-web/CVS/working/dir
112 gnulib_repo=/path/to/gnulib/git/repo
115 export GENDOCS_TEMPLATE_DIR=$gnulib_repo/doc
116 $gnulib_repo/util/gendocs.sh \
118 -o $stow_web_repo/manual \
119 --email bug-stow@gnu.org \
120 stow "GNU Stow manual"
123 # Check that the changes look OK
126 cvs commit -m "Update manual to v$version"
128 - Update the news section of stow.html in the stow-web CVS repository
129 to mention the new release.
132 # Check that the changes look OK
135 cvs commit -m "Update home page to v$version"
137 - Send release announcements to
142 - https://savannah.gnu.org/news/?group=stow
144 See http://www.gnu.org/prep/maintain/html_node/Announcements.html for
145 more on making release announcements.
147 Excerpts of NEWS can be formatted for inclusion in the email by
148 selecting the relevant version subtree via M-x org-mark-element,
149 minus the "* Changes in version x.y.z", running M-x
150 org-export-dispatch, and exporting as plain text.
152 - Update the git repositories to the next expected version, so that anyone
153 who builds from git gets a version of Stow which is higher than the release
156 - Increment the patchlevel of the version number in configure.ac.
160 version=$( tools/get-version ) && echo $version
162 - In order to update META.yml and META.json, repeat the same
163 procedure listed above, starting at "make distclean" and
164 finishing after "./Build distmeta".
166 - Check META.yml and META.json now have the new versions.
168 - git add configure.ac META.{yml,json}
170 - git commit -m "Bump version to $version for development of next release"
172 - git push savannah master
174 - git push github master