[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU coding standards for the --version option
From: |
Gary V. Vaughan |
Subject: |
Re: GNU coding standards for the --version option |
Date: |
Wed, 26 Nov 2003 17:15:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for the report, which brings to light a worse problem: The version
timestamp is not regenerated automatically when the distribution is rolled.
Libtool-1.5 should report:
$ libtool --version | head -1
ltmain.sh (GNU libtool) 1.5
The other gubbins is to help us distinguish cvs revisions in bug reports, and
should only be displayed in self built installations.
Anyhow, I think I fixed this in CVS now, as well as moving the information
around to satisfy the standards you cite.
$ ./libtool --version | head -1
ltmain.sh (GNU libtool 1.1350 2003/11/26 15:36:07) 1.5a
Cheers,
Gary.
Steve Chaplin wrote:
| libtool (unlike automake and autoconf) does not follow GNU coding
| standards for the --version option.
| http://www.gnu.org/prep/standards_toc.html
| Section 4.6 Standards for command line interfaces.
| states:
| "The first line is meant to be easy for a program to parse; the version
| number proper starts after the last space."
|
| $ automake --version | head -1
| automake (GNU automake) 1.7.8
|
| $ autoconf --version | head -1
| autoconf (GNU Autoconf) 2.57
|
| $ libtool --version | head -1
| ltmain.sh (GNU libtool) 1.5 (1.1220.2.1 2003/04/14 22:48:00)
|
| So a program would parse the versions as
| automake 1.7.8
| autoconf 2.57
| libtool 22 ? Version number is incorrectly parsed
|
| changing the format to
| ltmain.sh (GNU libtool) (1.1220.2.1 2003/04/14 22:48:00) 1.5
| or putting "(1.1220.2.1 2003/04/14 22:48:00)" on another line
| would solve the problem.
|
| Regards
| Steve
- --
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://www.oranda.demon.co.uk
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQE/xN/BFRMICSmD1gYRAoAJAJ9XxsISWKYNLQjeiFQp0Vyv9TxYnACeM5ws
ZtqDZmaJf0KFNQQCcbO1p5s=
=sQr4
-----END PGP SIGNATURE-----