README, doc: some README and release procedure updates.

This commit is contained in:
Jehan 2022-12-08 22:32:56 +01:00
parent ae6302a016
commit 2f5c24006e
2 changed files with 13 additions and 9 deletions

View File

@ -183,7 +183,7 @@ uchardet started as a C language binding of the original C++ implementation of t
### Mac
brew install uchardet
or
port install uchardet
@ -300,8 +300,8 @@ It is to be noted that a lot has changed since the original code, yet
the base concept is still around, basing detection not just on encoding
rules, but importantly on analysis of character statistics in languages.
Original code by Mozilla does not seem to be found anymore anywhere, but
it's probably not too far from the initial commit of this repository.
Original code of `universalchardet` by Mozilla can still be retrieved from the
[Wayback machine](https://web.archive.org/web/20150730144356/http://lxr.mozilla.org/seamonkey/source/extensions/universalchardet/).
Mozilla code was extracted and packaged into a standalone library under
the name `uchardet` by BYVoid in 2011, in a personal repository.

View File

@ -7,9 +7,13 @@
* Commit the version change with the message "Release: version X.Y.Z."
* Tag your release commit with:
* In the next commands, let's suppose such environment variable is set:
git tag -a vx.y.z
export UCHARDET_VERSION=x.y.z
* Tag and sign your release commit with:
git tag -s v$UCHARDET_VERSION
The tag message should be have the header "Version x.y.z released." followed
by a list of new features or important fixes. This tag message will be
@ -25,11 +29,11 @@
* Push the release and the tag:
git push
git push origin vx.y.z
git push origin v$UCHARDET_VERSION
* Create a release tarball:
git archive --format=tar.xz --prefix=uchardet-x.y.z/ vx.y.z >uchardet-x.y.z.tar.xz
git archive --format=tar.xz --prefix=uchardet-$UCHARDET_VERSION/ v$UCHARDET_VERSION >uchardet-$UCHARDET_VERSION.tar.xz
Note: if you have not already set this up, you have to run first:
@ -39,11 +43,11 @@ Cf. EXAMPLES section in `git help archive`.
* Compute a SHA1 checksum:
sha1sum uchardet-x.y.x.tar.xz > uchardet-x.y.z.tar.xz.sha1
sha256sum uchardet-$UCHARDET_VERSION.tar.xz > uchardet-$UCHARDET_VERSION.tar.xz.sha256
* Upload to annarchy download server:
scp uchardet-x.y.x.tar.xz uchardet-x.y.z.tar.xz.sha1 annarchy.freedesktop.org:/srv/www.freedesktop.org/www/software/uchardet/releases/
scp uchardet-$UCHARDET_VERSION.tar.xz uchardet-$UCHARDET_VERSION.tar.xz.sha256 annarchy.freedesktop.org:/srv/www.freedesktop.org/www/software/uchardet/releases/
The archive and its checksum file should now be available from:
https://www.freedesktop.org/software/uchardet/releases/