From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LOa1z-0004MK-BG for garchives@archives.gentoo.org; Sun, 18 Jan 2009 15:57:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0E1CE02DC; Sun, 18 Jan 2009 15:57:44 +0000 (UTC) Received: from mail.osagesoftware.com (osagesoftware.com [216.144.204.42]) by pigeon.gentoo.org (Postfix) with ESMTP id B5DD7E02DC for ; Sun, 18 Jan 2009 15:57:44 +0000 (UTC) Received: from osage.osagesoftware.com (osage.osagesoftware.com [192.168.1.10]) by mail.osagesoftware.com (Postfix) with ESMTP id 946277BCBA for ; Sun, 18 Jan 2009 10:57:43 -0500 (EST) Date: Sun, 18 Jan 2009 10:57:43 -0500 From: David Relson To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Append string on Kernel builds Message-ID: <20090118105743.173a1db8@osage.osagesoftware.com> In-Reply-To: <87ocy656vj.fsf@newsguy.com> References: <200901162159.00522.dirk.heinrichs@online.de> <20090117123104.407319b3@rabbit.robbieab.com> <87ocy656vj.fsf@newsguy.com> Organization: Osage Software Systems, Inc. X-Mailer: Claws Mail 3.7.0 (GTK+ 2.12.11; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: f7176679-95d9-40b5-ac8c-144c564e391f X-Archives-Hash: 75e774ef925690a478775bab0c5ac507 On Sat, 17 Jan 2009 08:45:04 -0600 Harry Putnam wrote: > Robert Bridge writes: > > > On Fri, 16 Jan 2009 19:36:42 -0600 > > reader@newsguy.com wrote: > >> What I asked was if there is some tricky syntax I could use on that > >> kernel setting that would do: linux-2.6.26-gentoo-$HOST-N > >> Where N is an incremented number every time I build the kernel > >> without running `mrproper'. > > > > Not quite what you are asking, but would appending a timestamp to > > the name work instead? It would pretty much guarantee a different > > name for every build. > > A timestamp would be fine. What syntax would I use on the kernel > config item: > > inside menuconfig => General Setup/Local Version [...] > > to get a timestamp? > How about an external tool? I use sed to fill in LOCALVERSION, e.g. V=$( date "+%m%d.%H%M" ) cp -p .config .config.old sed s/LOCALVERSION.*/LOCALVERSION=\"$V\"/ < .config.old > .config make vmlinux modules modules_install HTH, David