svn commit: r363259 - projects/release-git
Glen Barber
gjb at FreeBSD.org
Thu Jul 16 20:36:23 UTC 2020
Author: gjb
Date: Thu Jul 16 20:36:22 2020
New Revision: 363259
URL: https://svnweb.freebsd.org/changeset/base/363259
Log:
Add GIT_CMD, similar to SVN_CMD.
Sponsored by: Rubicon Communications, LLC (netgate.com)
Modified:
projects/release-git/Makefile.inc1
Modified: projects/release-git/Makefile.inc1
==============================================================================
--- projects/release-git/Makefile.inc1 Thu Jul 16 20:34:26 2020 (r363258)
+++ projects/release-git/Makefile.inc1 Thu Jul 16 20:36:22 2020 (r363259)
@@ -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)
More information about the svn-src-projects
mailing list