Re: git: e0e5bf4d6283 - main - freebsd-update: Mention 13.2-RELEASE in usage.
- In reply to: Poul-Henning Kamp : "git: e0e5bf4d6283 - main - freebsd-update: Mention 13.2-RELEASE in usage."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 30 Apr 2023 06:59:51 UTC
30.04.2023 12:07, Poul-Henning Kamp wrote: > The branch main has been updated by phk: > > URL: https://cgit.FreeBSD.org/src/commit/?id=e0e5bf4d62831090a23dd0e0ac374baa0a00ef98 > > commit e0e5bf4d62831090a23dd0e0ac374baa0a00ef98 > Author: Poul-Henning Kamp <phk@FreeBSD.org> > AuthorDate: 2023-04-30 05:06:56 +0000 > Commit: Poul-Henning Kamp <phk@FreeBSD.org> > CommitDate: 2023-04-30 05:06:56 +0000 > > freebsd-update: Mention 13.2-RELEASE in usage. > --- > usr.sbin/freebsd-update/freebsd-update.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh > index 4ef44d1ad000..03eefee75bbd 100644 > --- a/usr.sbin/freebsd-update/freebsd-update.sh > +++ b/usr.sbin/freebsd-update/freebsd-update.sh > @@ -49,7 +49,7 @@ Options: > case of an unfinished upgrade > -j jail -- Operate on the given jail specified by jid or name > -k KEY -- Trust an RSA key with SHA256 hash of KEY > - -r release -- Target for upgrade (e.g., 11.1-RELEASE) > + -r release -- Target for upgrade (e.g., 13.2-RELEASE) > -s server -- Server from which to fetch updates > (default: update.FreeBSD.org) > -t address -- Mail output of cron command, if any, to address I took some historic data from https://www.freebsd.org/releases/ to make a table of release years: 9.2 2013 10.2 2015 11.2 2018 12.2 2020 13.2 2023 Note that formula (int)((year-1990)*2/5) gives exact major release number for .2 release and it uses integer arithmetic only. Given freebsd-update.sh is a shell script with $(( )) for integer arithmetic, we could automate the usage message for the future.