<commit_before>= Release checklist =

Source release:

- Update OP_LT_* API versioning in configure.ac.
- Check for uncommitted changes to master.
- Tag the release commit with 'git tag -s vN.M'.
 - Include release notes in the tag annotation.
- Verify 'make distcheck' produces a tarball with
  the desired name.
- Push tag to public repo.
- Upload source packge 'opusfile-${version}.tar.gz'
  to website and verify file permissions.
- Update checksum files on website.

Releases are commited to https://svn.xiph.org/releases/opus/
which propagates to downloads.xiph.org, and copied manually
to https://ftp.mozilla.org/pub/mozilla.org/opus/

Win32 binaries:

- Assuming the mingw cross toolchain:
- Checkout/download latest or other appropriate
  versions of libogg, opus, and any other supported
  dependencies.
- Compile them with:
    ./configure --host=i686-w64-mingw32 --prefix=/path/to/builddir
    make && make check && make install
  or similar. Wine is required for 'make check' to complete.
- Compile opusfile with:
    ./configure --host=i686-w64-mingw32 --prefix=/path/to/builddir \
        PKG_CONFIG_PATH=/path/to/builddir/lib/pkgconfig
    make && make check && make -C doc/latex
- mkdir opusfile-${version}-win32
- Copy AUTHORS COPYING README.txt include/opusfile.h to the release dir.
- Merge changes between README.txt and the version in the last
  binary release. E.g. it's good to include versions of the dependencies,
  release notes, etc.
- Convert README.txt to DOS line endings.
- Copy .libs/libopusfile-0.dll to the release dir.
- Copy .libs/libopusfile.a to the release dir.
- Copy .libs/libopusfile.dll.a to the release dir. (May not be needed?)
- Copy libogg/src/.libs/libogg-0.dll to the release dir.
- Copy opus/.libs/libopus-0.dll to the release dir.
- Copy any other dependent dlls
- Copy doc/latex/refman to opusfile-${version}-win32/opusfile-${version}.pdf
- Copy examples/.libs/*.exe to the release dir.
- Strip *.dll *.a *.exe in the release dir.
- In the release dir, run:
    sha1sum * > SHA1SUMS.txt
    gpg --detact-sign --armor SHA1SUMS.txt
- In the parent directory, create the archive:
    zip -r opusfile-${version}-win32.zip opusfile-${version}-win32/*
- Copy the archive to a clean system and verify the examples work
  to make sure you've included all the necessary libraries.
- Upload the archive zipfile to websites.
- Verify file permissions and that it's available at the expected
  URL.

Binary releases are copied manually to
ftp.mozilla.org:/pub/mozilla.org/opus/win32/<commit_msg>Don't forget to update download links.<commit_after>= Release checklist =

Source release:

- Update OP_LT_* API versioning in configure.ac.
- Check for uncommitted changes to master.
- Tag the release commit with 'git tag -s vN.M'.
 - Include release notes in the tag annotation.
- Verify 'make distcheck' produces a tarball with
  the desired name.
- Push tag to public repo.
- Upload source packge 'opusfile-${version}.tar.gz'
  to website and verify file permissions.
- Update checksum files on website.
- Update links on <http://www.opus-codec.org/downloads/>.

Releases are commited to https://svn.xiph.org/releases/opus/
which propagates to downloads.xiph.org, and copied manually
to https://ftp.mozilla.org/pub/mozilla.org/opus/

Win32 binaries:

- Assuming the mingw cross toolchain:
- Checkout/download latest or other appropriate
  versions of libogg, opus, and any other supported
  dependencies.
- Compile them with:
    ./configure --host=i686-w64-mingw32 --prefix=/path/to/builddir
    make && make check && make install
  or similar. Wine is required for 'make check' to complete.
- Compile opusfile with:
    ./configure --host=i686-w64-mingw32 --prefix=/path/to/builddir \
        PKG_CONFIG_PATH=/path/to/builddir/lib/pkgconfig
    make && make check && make -C doc/latex
- mkdir opusfile-${version}-win32
- Copy AUTHORS COPYING README.txt include/opusfile.h to the release dir.
- Merge changes between README.txt and the version in the last
  binary release. E.g. it's good to include versions of the dependencies,
  release notes, etc.
- Convert README.txt to DOS line endings.
- Copy .libs/libopusfile-0.dll to the release dir.
- Copy .libs/libopusfile.a to the release dir.
- Copy .libs/libopusfile.dll.a to the release dir. (May not be needed?)
- Copy libogg/src/.libs/libogg-0.dll to the release dir.
- Copy opus/.libs/libopus-0.dll to the release dir.
- Copy any other dependent dlls
- Copy doc/latex/refman to opusfile-${version}-win32/opusfile-${version}.pdf
- Copy examples/.libs/*.exe to the release dir.
- Strip *.dll *.a *.exe in the release dir.
- In the release dir, run:
    sha1sum * > SHA1SUMS.txt
    gpg --detact-sign --armor SHA1SUMS.txt
- In the parent directory, create the archive:
    zip -r opusfile-${version}-win32.zip opusfile-${version}-win32/*
- Copy the archive to a clean system and verify the examples work
  to make sure you've included all the necessary libraries.
- Upload the archive zipfile to websites.
- Verify file permissions and that it's available at the expected
  URL.
- Update links on <http://www.opus-codec.org/downloads/>.

Binary releases are copied manually to
ftp.mozilla.org:/pub/mozilla.org/opus/win32/
{'fraction_non_alphanumeric': 0.10166890466142336, 'fraction_numerical': 0.012276999808171879, 'mean_word_length': 3.422391857506361, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '178658', 'n_tokens_mistral': 1722, 'n_tokens_neox': 1586, 'n_words': 606}