Re: [PATCH] perf tools: Speed up the perf build time by simplifyingthe perf --version string generation

From: Ingo Molnar
Date: Tue Oct 30 2012 - 05:48:49 EST



* Ingo Molnar <mingo@xxxxxxxxxx> wrote:

> Does -l work?
>
> Alternatively, please replace:
>
> git tag --list "v[0-9].[0-9]*" | tail -1
>
> with:
>
> git tag | tail -1 | grep -E "v[0-9].[0-9]*"
>
> which is just as fast.

make that:

git tag 2>/dev/null | tail -1 | grep -E "v[0-9].[0-9]*"

this will work silently even if Git is not installed.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/