From ff1031c1b7ddbcf84bfb2982d8aea1746fb0d66b Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Thu, 16 Jul 2020 20:36:22 +0000 Subject: [PATCH] Add GIT_CMD, similar to SVN_CMD. Sponsored by: Rubicon Communications, LLC (netgate.com) --- Makefile.inc1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index 805a42befb48..6b3e7c849f64 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -478,6 +478,14 @@ SVN_CMD= ${_P}/${_S} . endfor .export SVN_CMD .endif +.if !defined(GIT_CMD) || empty(GIT_CMD) +. for _P in /usr/bin /usr/local/bin +. if exists(${_P}/git) +GIT_CMD= ${_P}/git +. endif +. endfor +.export GIT_CMD +.endif SVNFLAGS?= -r HEAD .if !defined(VCS_REVISION) || empty(VCS_REVISION) .if !defined(SVNVERSION_CMD) || empty(SVNVERSION_CMD)