f38e5dc68bf6f38793f31e56d7728a8fb4ac3892 galt Sun Oct 4 14:57:54 2020 -0700 Fixing makefiles to not depend on git repo commands when run from decompressed source code archive without any git repo. Requested by MarkD and Max. diff --git src/hg/htdocs/makefile src/hg/htdocs/makefile index e596318..776991b 100644 --- src/hg/htdocs/makefile +++ src/hg/htdocs/makefile @@ -1,21 +1,29 @@ kentSrc = ../.. include ../../inc/common.mk GIT = git GITUP = ${GIT} pull + +ifeq (${FIND},) + INSIDEGIT := $(shell git rev-parse --is-inside-work-tree 2>/dev/null) + ifeq (${INSIDEGIT},true) FIND = gitFiles + else + FIND = find + endif +endif # if you need to pick up files not checked-in yet for rsync, # you can run it like this: # # make FIND=find # # but be careful as it will rsync everything over including junk # REMEMBER: HTDOCSEXTRA # htdocsExtra is a repository that contains large files that we # do not wish to burden the main kent repo with. # You can check it out and make there too. # If you think there is a file missing, see if it is under the htdocsExtra repo. ifeq (${DOCUMENTROOT_USER},)