Skip to content

Commit

Permalink
Merge pull request #57 from cseed/gitfix
Browse files Browse the repository at this point in the history
Fix version info bug.
  • Loading branch information
cseed authored Jan 20, 2017
2 parents 814c062 + 89ba551 commit e97e35c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ ICEBOX ?= $(PREFIX)/share/icebox
.PHONY: all
all: bin/arachne-pnr share/arachne-pnr/chipdb-1k.bin share/arachne-pnr/chipdb-8k.bin

VER = 0.1+$(shell echo `git log --oneline | wc -l`)+$(shell echo `git diff --name-only HEAD | wc -l`)
GIT_REV = $(shell git rev-parse --verify --short HEAD)
VER = 0.1+$(shell test -e .git && echo `git log --oneline | wc -l`+`git diff --name-only HEAD | wc -l`)
GIT_REV = $(shell git rev-parse --verify --short HEAD 2>/dev/null || echo UNKNOWN)

VER_HASH = $(shell echo "$(VER) $(GIT_REV)" | sum | cut -d ' ' -f -1)

Expand Down

0 comments on commit e97e35c

Please sign in to comment.