From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12647 invoked by alias); 14 Nov 2011 20:37:51 -0000 Received: (qmail 12638 invoked by uid 22791); 14 Nov 2011 20:37:51 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Nov 2011 20:37:37 +0000 Received: by wwp14 with SMTP id 14so4610211wwp.12 for ; Mon, 14 Nov 2011 12:37:36 -0800 (PST) Received: by 10.180.75.204 with SMTP id e12mr26930628wiw.61.1321303056038; Mon, 14 Nov 2011 12:37:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.82.2 with HTTP; Mon, 14 Nov 2011 12:37:15 -0800 (PST) In-Reply-To: <201111140820.57656.yann.morin.1998@anciens.enib.fr> References: <02572d8009f6a872ccd2.1321225822@crucis> <201111140820.57656.yann.morin.1998@anciens.enib.fr> From: Michael Hope Date: Mon, 14 Nov 2011 20:37:00 -0000 Message-ID: Subject: Re: [PATCH] configure: support arbitrary versions via a shell script To: "Yann E. MORIN" Cc: crossgcc@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00049.txt.bz2 On Mon, Nov 14, 2011 at 8:20 PM, Yann E. MORIN wrote: > Michael, =A0All, > > On Monday 14 November 2011 001022 Michael Hope wrote: >> # HG changeset patch >> # User Michael Hope >> # Date 1321225775 -46800 >> # Branch any-version >> # Node ID 02572d8009f6a872ccd28d2e020b19772d7e8906 >> # Parent =A03cd375ecdd7213104577bbd70863fa35f387bb93 >> configure: support arbitrary versions via a shell script > > I already pushed a similar change this WE: > =A0http://crosstool-ng.org/hg/crosstool-ng/rev/d77d04661cd9 > > I named the script 'version.sh', without a leading dot. That sounds good. There's a minor bug in your version: ./configure --help uses the version from .version instead of version.sh as do_help() is called before version.sh is updated. Then again, it had a similar problem before the patch: ./configure --help would report crosstool-NG-hg instead of the full crosstool-NG-hg-revno-foo. Let me know if it's important and I can make a patch, -- Michael -- For unsubscribe information see http://sourceware.org/lists.html#faq