mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 08:46:40 +08:00
README, doc: some README and release procedure updates.
This commit is contained in:
parent
ae6302a016
commit
2f5c24006e
@ -183,7 +183,7 @@ uchardet started as a C language binding of the original C++ implementation of t
|
|||||||
### Mac
|
### Mac
|
||||||
|
|
||||||
brew install uchardet
|
brew install uchardet
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
port install uchardet
|
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
|
the base concept is still around, basing detection not just on encoding
|
||||||
rules, but importantly on analysis of character statistics in languages.
|
rules, but importantly on analysis of character statistics in languages.
|
||||||
|
|
||||||
Original code by Mozilla does not seem to be found anymore anywhere, but
|
Original code of `universalchardet` by Mozilla can still be retrieved from the
|
||||||
it's probably not too far from the initial commit of this repository.
|
[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
|
Mozilla code was extracted and packaged into a standalone library under
|
||||||
the name `uchardet` by BYVoid in 2011, in a personal repository.
|
the name `uchardet` by BYVoid in 2011, in a personal repository.
|
||||||
|
|||||||
@ -7,9 +7,13 @@
|
|||||||
|
|
||||||
* Commit the version change with the message "Release: version X.Y.Z."
|
* 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
|
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
|
by a list of new features or important fixes. This tag message will be
|
||||||
@ -25,11 +29,11 @@
|
|||||||
* Push the release and the tag:
|
* Push the release and the tag:
|
||||||
|
|
||||||
git push
|
git push
|
||||||
git push origin vx.y.z
|
git push origin v$UCHARDET_VERSION
|
||||||
|
|
||||||
* Create a release tarball:
|
* 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:
|
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:
|
* 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:
|
* 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:
|
The archive and its checksum file should now be available from:
|
||||||
https://www.freedesktop.org/software/uchardet/releases/
|
https://www.freedesktop.org/software/uchardet/releases/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user