H. J. Lu - Re: Add revision number to gcc version? (original) (raw)
This is the mail archive of the gcc@gcc.gnu.orgmailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] |
- From: "H. J. Lu"
- To: Mike Stump
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 14 Nov 2005 14:05:47 -0800
- Subject: Re: Add revision number to gcc version?
- References: <20051114171441.GA12412@lucon.org> <787EE306-43A7-4D88-B458-E39420CED0D7@apple.com>
On Mon, Nov 14, 2005 at 12:52:49PM -0800, Mike Stump wrote:
On Nov 14, 2005, at 9:14 AM, H. J. Lu wrote:
Can we change it to something like
gcc (GCC) 4.1.0 20051113 (revision 106863) (experimental)
Doesn't work, unless you also have the branch name. Further, the
substitutions that svn can do, doesn't allow for the above, and they
don't want to `fix' svn to do it (see the FAQ). (I think I'd like it
too.)
I was thinking to add a few lines like
rm -f info.$$
svn info > info.$$
revision=grep Revision: info.$$ | awk '{ print $2 }'
branch=grep URL: info.$$ | sed -e "s,.*/,,g"
{
echo branch: $branch
echo revision: $revision
}
rm -f info.$$
to contrib/gcc_update to put branch and revision into files so that they can be used for gcc version.
H.J.
- References:
- Add revision number to gcc version?
* From: H. J. Lu - Re: Add revision number to gcc version?
* From: Mike Stump
- Add revision number to gcc version?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |