Skip to content

Commit 235cfc5

Browse files
committed
dropped jq requirement
1 parent 8b1bc70 commit 235cfc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PROGRAMS = $(shell ls -1 cmd/)
77

88
PACKAGE = $(shell ls -1 *.go)
99

10-
VERSION = $(shell jq .version codemeta.json | cut -d\" -f 2)
10+
VERSION = $(shell grep '"version":' codemeta.json | cut -d\" -f 4)
1111

1212
BRANCH = $(shell git branch | grep '* ' | cut -d\ -f 2)
1313

@@ -32,6 +32,7 @@ version.go: .FORCE
3232
@echo '' >>version.go
3333
@echo 'const Version = "$(VERSION)"' >>version.go
3434
@echo '' >>version.go
35+
@git add version.go
3536
@if [ -f bin/codemeta ]; then ./bin/codemeta; fi
3637

3738
$(PROGRAMS): $(PACKAGE)

0 commit comments

Comments
 (0)