Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757398Ab2J3Jfm (ORCPT ); Tue, 30 Oct 2012 05:35:42 -0400 Received: from casper.infradead.org ([85.118.1.10]:53047 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757054Ab2J3Jfk (ORCPT ); Tue, 30 Oct 2012 05:35:40 -0400 Date: Tue, 30 Oct 2012 02:35:13 -0700 From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Andrew Vagin , Borislav Petkov , David Howells , Frederic Weisbecker , Jiri Olsa , Namhyung Kim , Paul Mackerras , Peter Zijlstra , Stephane Eranian , Steven Rostedt Subject: Re: [PATCH] perf tools: Speed up the perf build time by simplifying the perf --version string generation Message-ID: <20121030093513.GE25959@ghostprotocols.net> References: <1351261913-28250-1-git-send-email-acme@infradead.org> <20121026145451.GA14379@gmail.com> <20121026170503.GC20695@ghostprotocols.net> <20121027131935.GA30001@gmail.com> <20121030081807.GA8245@gmail.com> <20121030084600.GB8245@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121030084600.GB8245@gmail.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1078 Lines: 26 Em Tue, Oct 30, 2012 at 09:46:00AM +0100, Ingo Molnar escreveu: > +++ b/tools/perf/util/PERF-VERSION-GEN > @@ -12,7 +12,7 @@ LF=' > # First check if there is a .git to get the version from git describe > # otherwise try to get the version from the kernel makefile > if test -d ../../.git -o -f ../../.git && > - VN=$(git describe --match 'v[0-9].[0-9]*' --abbrev=4 HEAD 2>/dev/null) && > + VN=$(echo $(git tag --list "v[0-9].[0-9]*" | tail -1)"-g"$(git log -1 --abbrev=4 --pretty=format:"%h" HEAD) 2>/dev/null) && [acme@sandy linux]$ make -j8 -C tools/perf/ O=/home/acme/git/build/perf install make: Entering directory `/home/git/linux/tools/perf' error: unknown option `list' usage: git tag [-a|-s|-u ] [-f] [-m |-F ] [] [acme@sandy linux]$ git --version git version 1.7.1 - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/