Skip to content
Snippets Groups Projects
Commit 632246a6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't use echo to create git_hash.h, collapses multiple spaces

Wasn't sufficiently quoting, but we don't need to use echo in the first place

Will reconsider using %e instead of %d later
parent 774b6ea7
No related branches found
No related tags found
No related merge requests found
Pipeline #6085 passed
......@@ -157,8 +157,8 @@ FORCE:
ifneq ($(GIT), NO)
git_hash.h: FORCE ../../.git
$(QUIET)echo '#define GIT_HASH "'`git log -1 HEAD --format=%h`\" > $@.tmp
$(QUIET)echo '#define GIT_DATE "'`git log -1 HEAD --format=%cd '--date=format-local:%b %e %Y %H:%M'`\" >> $@.tmp
$(QUIET)git log -1 HEAD --format="#define GIT_HASH \"%h\"" > $@.tmp
$(QUIET)git log -1 HEAD --format="#define GIT_DATE \"%cd\"" '--date=format-local:%b %e %Y %H:%M' >> $@.tmp
$(QUIET)test -e $@ && diff $@.tmp $@ || cp $@.tmp $@
$(QUIET)rm -f $@.tmp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment