Debian Codegraph @

docs/release

raw
1 How to prepare a new release
2 ----------------------------
3
4 . include/freetype/freetype.h: Update `FREETYPE_MAJOR`,
5 `FREETYPE_MINOR`, and `FREETYPE_PATCH`.
6
7 . Update version numbers in all files where necessary (for example, do
8 a grep for both '2.14.0' and '2140' for release 2.14.0).
9
10 . builds/unix/configure.raw: Update `version_info`.
11
12 . docs/CHANGES: Document differences to last release.
13
14 . README: Update.
15
16 . docs/VERSIONS.TXT: Document changed `version_info`.
17
18 . Update the 'dlg' submodule with
19
20 git submodule foreach git pull origin master
21
22 . Copy the submodule code with
23
24 make copy_submodule
25
26 and run
27
28 make distclean && make devel && make
29 make distclean && make devel && make multi
30 make distclean && make devel CC=g++ && make CC=g++ ANSIFLAGS=""
31 make distclean && make devel CC=g++ && make multi CC=g++ ANSIFLAGS=""
32
33 sh autogen.sh
34 make distclean && ./configure CC=g++ && make ANSIFLAGS=""
35
36 to test compilation with both gcc and g++ (you might also add the `-j`
37 flag to `make` for parallel compilation).
38
39 Note that it is normally not necessary to test standard C
40 compilation with the `configure`, `meson`, and `cmake` build tools
41 since this is done by the CI process of 'gitlab.freedesktop.org' for
42 every commit.
43
44 . Test C++ compilation for 'freetype-demos' too; this needs a compiled
45 FreeType library as described in the `README` file.
46
47 make distclean && make
48 make distclean && make CC=g++ ANSIFLAGS=""
49
50 . Run `src/tools/chktrcmp.py` and check that there are no undefined
51 `trace_XXXX` macros.
52
53 . Check meson subproject files (for both the 'freetype' and
54 'freetype-demos' git repositories) with
55
56 meson wrap status
57
58 and update wrap files with
59
60 meson wrap update <library>
61
62 if necessary.
63
64 . Test meson compilation (for both the 'freetype' and 'freetype-demos'
65 git repositories) with
66
67 meson setup builddir && meson compile -C builddir
68
69 . Commit everything.
70
71 . After pushing the new release, tag the git repositories ('freetype',
72 'freetype-demos') with
73
74 git tag VER-<version> -m "" -u <committer>
75
76 and push the tags with
77
78 git push --tags
79
80 . Check with
81
82 git clean -ndx
83
84 that the git directory is really clean (and remove extraneous files
85 if necessary).
86
87 . Say `make dist` in both the 'freetype' and 'freetype-demos'
88 repositories to generate the `.tar.gz`, `.tar.xz`, and `.zip` files.
89
90 . Create the doc bundles (`freetype-doc-<version>.tar.gz`,
91 `freetype-doc-<version>.tar.xz`, `ftdoc<version>.zip`). This is
92 everything in
93
94 <freetype-web git repository>/freetype2/docs
95
96 except the `reference` subdirectory. Do *not* use option `-l` from
97 zip!
98
99 . Run the following script (with updated `$VERSION`, `$SAVANNAH_USER`,
100 `$SOURCEFORGE_USER`, and `GPG_KEY_ID` variables) to sign and upload
101 the bundles to both Savannah and SourceForge. The signing code has
102 been taken from the `gnupload` script (part of the 'automake'
103 bundle); it uses `sshpass` to avoid entering the SourceForge password
104 multiple times.
105
106 #!/bin/sh
107
108 VERSION=2.14.0
109 SAVANNAH_USER=wl
110 SOURCEFORGE_USER=wlemb
111 GPG_KEY_ID=BE6C3AAC63AD8E3F
112
113 #####################################################################
114
115 GPG="/usr/bin/gpg --batch --no-tty --local-user $GPG_KEY_ID"
116
117 version=`echo $VERSION | sed "s/\\.//g"`
118
119 FREETYPE_PACKAGES="freetype-$VERSION.tar.gz \
120 freetype-$VERSION.tar.xz \
121 ft$version.zip"
122 FT2DEMOS_PACKAGES="ft2demos-$VERSION.tar.gz \
123 ft2demos-$VERSION.tar.xz \
124 ftdmo$version.zip"
125 FTDOC_PACKAGES="freetype-doc-$VERSION.tar.gz \
126 freetype-doc-$VERSION.tar.xz \
127 ftdoc$version.zip"
128
129 PACKAGE_LIST="$FREETYPE_PACKAGES \
130 $FT2DEMOS_PACKAGES \
131 $FTDOC_PACKAGES"
132
133 set -e
134 unset savannah_passphrase
135 unset sourceforge_password
136
137 PATH=/empty echo -n "Enter Savannah GPG passphrase: "
138 stty -echo
139 read -r savannah_passphrase
140 stty echo
141 echo
142
143 PATH=/empty echo -n "Enter SourceForge password: "
144 stty -echo
145 read -r sourceforge_password
146 stty echo
147 echo
148
149 for f in $PACKAGE_LIST; do
150 if test ! -f $f; then
151 echo "$0: Cannot find \`$f'" 1>&2
152 exit 1
153 else
154 :
155 fi
156 done
157
158 for f in $PACKAGE_LIST; do
159 echo "Signing $f..."
160 rm -f $f.sig
161 echo $savannah_passphrase | $GPG --passphrase-fd 0 -ba -o $f.sig $f
162 done
163
164 FREETYPE_SIGNATURES=
165 for i in $FREETYPE_PACKAGES; do
166 FREETYPE_SIGNATURES="$FREETYPE_SIGNATURES $i.sig"
167 done
168
169 FT2DEMOS_SIGNATURES=
170 for i in $FT2DEMOS_PACKAGES; do
171 FT2DEMOS_SIGNATURES="$FT2DEMOS_SIGNATURES $i.sig"
172 done
173
174 FTDOC_SIGNATURES=
175 for i in $FTDOC_PACKAGES; do
176 FTDOC_SIGNATURES="$FTDOC_SIGNATURES $i.sig"
177 done
178
179 SIGNATURE_LIST="$FREETYPE_SIGNATURES \
180 $FT2DEMOS_SIGNATURES \
181 $FTDOC_SIGNATURES"
182
183 scp -O $PACKAGE_LIST $SIGNATURE_LIST \
184 [email protected]:/releases/freetype/
185
186 echo $sourceforge_password | sshpass \
187 rsync -avP -e ssh $FREETYPE_PACKAGES $FREETYPE_SIGNATURES \
188 $SOURCEFORGE_USER,[email protected]:/home/frs/project/f/fr/freetype/freetype2/$VERSION/
189 echo $sourceforge_password | sshpass \
190 rsync -avP -e ssh $FT2DEMOS_PACKAGES $FT2DEMOS_SIGNATURES \
191 $SOURCEFORGE_USER,[email protected]:/home/frs/project/f/fr/freetype/freetype-demos/$VERSION/
192 echo $sourceforge_password | sshpass \
193 rsync -avP -e ssh $FTDOC_PACKAGES $FTDOC_SIGNATURES \
194 $SOURCEFORGE_USER,[email protected]:/home/frs/project/f/fr/freetype/freetype-docs/$VERSION/
195
196 # EOF
197
198 . Prepare a `README` file for SourceForge and upload it with the
199 following script (with updated `$VERSION` and `$SOURCEFORGE_USER`
200 variables).
201
202 #!/bin/sh
203
204 VERSION=2.14.0
205 SOURCEFORGE_USER=wlemb
206
207 #####################################################################
208
209 rsync -avP -e ssh README \
210 $SOURCEFORGE_USER,[email protected]:/home/frs/project/f/fr/freetype/freetype2/$VERSION/
211
212 # EOF
213
214 . On SourceForge, tag the just uploaded `ftXXX.zip` and
215 `freetype-XXX.tar.xz` files as the default files to download for
216 'Windows' and 'Others', respectively.
217
218 . Trigger the automatic generation of the online API reference by
219 updating the `FT_VERSION` variable in file `.gitlab-ci.yml` of the
220 'freetype-web' repository.
221
222 . Announce new release on '[email protected]' and to
223 relevant newsgroups. The text should include
224
225 - SHA256 checksums of all files,
226 - instructions how to verify the bundles using the `.sig` file data,
227 - the PGP public key used to sign the archives.
228
229 ----------------------------------------------------------------------
230
231 Copyright (C) 2003-2026 by
232 David Turner, Robert Wilhelm, and Werner Lemberg.
233
234 This file is part of the FreeType project, and may only be used,
235 modified, and distributed under the terms of the FreeType project
236 license, LICENSE.TXT. By continuing to use, modify, or distribute
237 this file you indicate that you have read the license and understand
238 and accept it fully.
239
240
241 --- end of release ---