delorie.com/archives/browse.cgi | search |
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"
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |