release 6.6 KB

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