diff options
author | Juraj Lutter <otis@FreeBSD.org> | 2021-11-28 20:44:13 +0000 |
---|---|---|
committer | Juraj Lutter <otis@FreeBSD.org> | 2021-12-07 07:43:51 +0000 |
commit | ae39c0b6bc3773333e18d5009c69826b8e78fe5b (patch) | |
tree | 4efc314dc152c66b1f6d2230ed155612485f9f6f | |
parent | 7adb46c70f2e050386422ffdda38ada3b61cd998 (diff) | |
download | src-ae39c0b6bc3773333e18d5009c69826b8e78fe5b.tar.gz src-ae39c0b6bc3773333e18d5009c69826b8e78fe5b.zip |
Makefile.inc1: Silence an error in make packages
Silence an error in "packages" target, like:
eval: /usr/src: Permission denied
on systems without subversion present.
Reviewed by: emaste
Approved by: emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33153
(cherry picked from commit aaa4cd7f3c933950582dfb4f0eac23a200dafe53)
-rw-r--r-- | Makefile.inc1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index c18c92d3cd38..b2ea58f02b1d 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -502,11 +502,13 @@ SVNVERSION_CMD?=${_D}/svnliteversion . endif . endfor .endif +.if defined(SVNVERSION_CMD) && !empty(SVNVERSION_CMD) _VCS_REVISION?= $$(eval ${SVNVERSION_CMD} ${SRCDIR}) . if !empty(_VCS_REVISION) VCS_REVISION= $$(echo r${_VCS_REVISION}) -. endif .export VCS_REVISION +. endif +.endif .endif .if !defined(GIT_CMD) || empty(GIT_CMD) |