Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 28 Aug 2002 17:28:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 28 Aug 2002 17:28:04 -0400 Received: from phoenix.infradead.org ([195.224.96.167]:527 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id ; Wed, 28 Aug 2002 17:28:02 -0400 Date: Wed, 28 Aug 2002 22:32:16 +0100 From: Christoph Hellwig To: Steven Cole Cc: Alan Cox , Marcelo Tosatti , Linus Torvalds , Linux Kernel Subject: Re: [PATCH] update ver_linux script to work with gcc 3.2. Message-ID: <20020828223216.A13321@infradead.org> Mail-Followup-To: Christoph Hellwig , Steven Cole , Alan Cox , Marcelo Tosatti , Linus Torvalds , Linux Kernel References: <1030569489.4032.113.camel@spc9.esa.lanl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1030569489.4032.113.camel@spc9.esa.lanl.gov>; from elenstev@mesatop.com on Wed, Aug 28, 2002 at 03:18:09PM -0600 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 901 Lines: 24 On Wed, Aug 28, 2002 at 03:18:09PM -0600, Steven Cole wrote: > --- linux-2.4.20-pre4-ac2/scripts/ver_linux.orig Wed Aug 28 14:37:39 2002 > +++ linux-2.4.20-pre4-ac2/scripts/ver_linux Wed Aug 28 14:37:51 2002 > @@ -12,7 +12,11 @@ > uname -a > echo ' ' > > -echo "Gnu C " `gcc --version` > +gcc --version 2>&1| head -n 1 | grep -v gcc | awk \ > +'NR==1{print "Gnu C ", $1}' > + > +gcc --version 2>&1| grep gcc | awk \ > +'NR==1{print "Gnu C ", $3}' Btw, both old and new versions are buggy here, as they should check $(CC). My system compiler here is 2.95 but I compile with 3.2 from /opt/gcc-3.2/bin/gcc - 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/