delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/07/16/18:45:59

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on fly.srk.fer.hr
X-Spam-Level:
X-Spam-Status: No, score=-1.0 required=6.3 tests=ALL_TRUSTED
autolearn=disabled version=3.4.0
Date: Fri, 17 Jul 2015 00:45:34 +0200
From: "Ivan Stankovic (pokemon AT fly DOT srk DOT fer DOT hr) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: "Hannu Vuolasaho (vuokko AT msn DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] Re: geda-gaf on FreeBSD and probably other
architectures
Message-ID: <20150716224534.GA4233@alpha2>
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>
<mo6ijf$se4$1 AT ger DOT gmane DOT org>
<CAOuGh89bwQxit-TYpySeN-xFLtz-Q1eSPgcYXDdVe1GYyc2MXg AT mail DOT gmail DOT com>
<20150716161104 DOT 7869 DOT qmail AT stuge DOT se>
<30E19982-8884-4108-B948-326609737EED AT noqsi DOT com>
<DUB125-W490B75C141C198951B57F9C6990 AT phx DOT gbl>
<201507162147 DOT t6GLl4dV030719 AT envy DOT delorie DOT com>
<DUB125-W66C3E0375B7E381C1472D5C6990 AT phx DOT gbl>
MIME-Version: 1.0
In-Reply-To: <DUB125-W66C3E0375B7E381C1472D5C6990@phx.gbl>
X-Operating-System: GNU/Linux
User-Agent: Mutt/1.5.23+102 (2ca89bed6448) (2014-03-12)
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

On Fri, Jul 17, 2015 at 01:12:35AM +0300, Hannu Vuolasaho (vuokko AT msn DOT com) [via geda-user AT delorie DOT com] wrote:
> 
> 
> 
> >> CURRENT_VERSION := $(shell git describe --abbrev=4 --dirty --always --tags)
> >> CURRENT_BRANCH := $(shell git branch|cut -f 2- -d ' ')
> >
> > That wouldn't work for me...
> 
> For me neither. git branch|grep '*'|cut -f 2- -d ' ' 
> 
> I copied it from latest and only project I had it wrong.

Try

   git branch | sed -n 's/^* //p'

-- 
Ivan Stankovic, pokemon AT fly DOT srk DOT fer DOT hr

"Protect your digital freedom and privacy, eliminate DRM, 
learn more at http://www.defectivebydesign.org/what_is_drm"

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019