Skip to content

Commit

Permalink
makefile: Fix generation of commit time in .git-commit-id file
Browse files Browse the repository at this point in the history
  • Loading branch information
markpizz committed Aug 2, 2018
1 parent b18fa8c commit e4191c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makefile
Expand Up @@ -211,8 +211,8 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
NEED_COMMIT_ID = need-commit-id
endif
ifeq (need-commit-id,$(NEED_COMMIT_ID))
$isodate=$(shell git log -1 --pretty="%ai"|sed -e 's/ /T/'|sed -e 's/ //')
$(shell git log -1 --pretty="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME $isodate" >.git-commit-id)
isodate=$(shell git log -1 --pretty="%ai"|sed -e 's/ /T/'|sed -e 's/ //')
$(shell git log -1 --pretty="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME $(isodate)" >.git-commit-id)
endif
endif
LTO_EXCLUDE_VERSIONS =
Expand Down

0 comments on commit e4191c3

Please sign in to comment.