Construct version from annotated tags only

Fixes issue 125
pull/130/head
Marcel van der Boom 5 years ago
parent f26e0ca86e
commit f6c129ed20
  1. 4
      Makefile

@ -1,4 +1,4 @@
GITREV=`git describe --tags | cut -c 2-` GITREV=`git describe | cut -c 2-`
LDFLAGS=-ldflags="-X 'github.com/writeas/writefreely.softwareVer=$(GITREV)'" LDFLAGS=-ldflags="-X 'github.com/writeas/writefreely.softwareVer=$(GITREV)'"
GOCMD=go GOCMD=go
@ -95,7 +95,7 @@ release-linux : clean ui
release-docker : release-docker :
$(DOCKERCMD) push $(IMAGE_NAME) $(DOCKERCMD) push $(IMAGE_NAME)
ui : force_look ui : force_look
cd less/; $(MAKE) $(MFLAGS) cd less/; $(MAKE) $(MFLAGS)

Loading…
Cancel
Save