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.