Re: [PATCH 01/22] ver_linux: gcc -dumpversion, use regex to find version number

2015-12-02 Thread Pavel Machek
On Mon 2015-10-12 21:39:41, Alexander Kapshuk wrote: > Rely on regex to find the version number, rather than a field number. Are you sure that is good idea? I'd say that the field number is going to fail in more obvious way, which is a good thing.

Re: [PATCH 01/22] ver_linux: gcc -dumpversion, use regex to find version number

2015-10-14 Thread Jim Davis
On Wed, Oct 14, 2015 at 2:29 AM, Alexander Kapshuk wrote: > On Wed, Oct 14, 2015 at 2:21 AM, Jim Davis wrote: >> I tried out patches 1-22 on a Fedora 22 system with the v4.3-rc5 >> source tree; everything looks pretty good. The old ver_linux script >> didn't get the mount version right, but the

Re: [PATCH 01/22] ver_linux: gcc -dumpversion, use regex to find version number

2015-10-14 Thread Alexander Kapshuk
On Wed, Oct 14, 2015 at 2:21 AM, Jim Davis wrote: > I tried out patches 1-22 on a Fedora 22 system with the v4.3-rc5 > source tree; everything looks pretty good. The old ver_linux script > didn't get the mount version right, but the new one does > > < mount debug >> Mount

Re: [PATCH 01/22] ver_linux: gcc -dumpversion, use regex to find version number

2015-10-13 Thread Jim Davis
I tried out patches 1-22 on a Fedora 22 system with the v4.3-rc5 source tree; everything looks pretty good. The old ver_linux script didn't get the mount version right, but the new one does < mount debug > Mount2.26.2 One minor thing with Net-tools, the old version p

[PATCH 01/22] ver_linux: gcc -dumpversion, use regex to find version number

2015-10-12 Thread Alexander Kapshuk
Rely on regex to find the version number, rather than a field number. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/ver_linux b/scripts/ver_linux index 7de36df..af6467e 100755 --- a/scripts/ver_linux +++