X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-TMN: [8frNtCjz2xSfK2e8fPC/NnnSNUuGvb4b] X-Originating-Email: [vuokko AT msn DOT com] Message-ID: From: "Hannu Vuolasaho (vuokko AT msn DOT com) [via geda-user AT delorie DOT com]" To: "geda-user AT delorie DOT com" Subject: RE: [geda-user] Re: geda-gaf on FreeBSD and probably other architectures Date: Fri, 17 Jul 2015 00:33:25 +0300 Importance: Normal In-Reply-To: <30E19982-8884-4108-B948-326609737EED@noqsi.com> References: <1507142204 DOT AA17911 AT ivan DOT Harhan DOT ORG> <55A58A48 DOT 80501 AT neurotica DOT com> <20150715014343 DOT GA6516 AT recycle DOT lbl DOT gov> <20150716161104 DOT 7869 DOT qmail AT stuge DOT se>,<30E19982-8884-4108-B948-326609737EED AT noqsi DOT com> Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-OriginalArrivalTime: 16 Jul 2015 21:33:25.0978 (UTC) FILETIME=[0C74FBA0:01D0C00F] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t6GLXTUs016964 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk John Doty wrote: > On Jul 16, 2015, at 10:11 AM, Peter Stuge (peter AT stuge DOT se) [via geda-user AT delorie DOT com] wrote: > >> git describe --tags is e.g. an excellent >> source of such a source identifier, when one uses Git. > > Two thumbs up. This is what I use: CURRENT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags) CURRENT_BRANCH := $(shell git branch|cut -f 2- -d ' ') Branch needs to be cut as it has * as firs character otherwise it would expand in compilation. Hannu Vuolasaho