We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b1bc70 commit 235cfc5Copy full SHA for 235cfc5
Makefile
@@ -7,7 +7,7 @@ PROGRAMS = $(shell ls -1 cmd/)
7
8
PACKAGE = $(shell ls -1 *.go)
9
10
-VERSION = $(shell jq .version codemeta.json | cut -d\" -f 2)
+VERSION = $(shell grep '"version":' codemeta.json | cut -d\" -f 4)
11
12
BRANCH = $(shell git branch | grep '* ' | cut -d\ -f 2)
13
@@ -32,6 +32,7 @@ version.go: .FORCE
32
@echo '' >>version.go
33
@echo 'const Version = "$(VERSION)"' >>version.go
34
35
+ @git add version.go
36
@if [ -f bin/codemeta ]; then ./bin/codemeta; fi
37
38
$(PROGRAMS): $(PACKAGE)
0 commit comments