You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/06/18 03:17:39 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #1270: Makefile.unix:versioning insure it is a .git dir

xiaoxiang781216 commented on a change in pull request #1270:
URL: https://github.com/apache/incubator-nuttx/pull/1270#discussion_r441945135



##########
File path: tools/Makefile.unix
##########
@@ -25,9 +25,13 @@ include $(TOPDIR)/Make.defs
 
 GIT_DIR = $(if $(wildcard $(TOPDIR)$(DELIM).git),y,)
 
+ifeq ($(GIT_DIR),y)
+GIT_PRESENT = `git rev-parse --git-dir 2> /dev/null`
+endif
+

Review comment:
       I have the same question before, but Makefile.win don't generate version info from git history like Makefile.unix. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org