Properly lookup values if they were empty.

Spotted by:	rpokala
X-MFC-With:	r329676
MFC after:	2 weeks
Sponsored by:	Dell EMC
This commit is contained in:
Bryan Drewery 2018-02-20 22:03:08 +00:00
parent 0f8995a910
commit 55927f2836
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329679

View File

@ -350,8 +350,8 @@ SVN_CMD= ${_P}/${_S}
.export SVN_CMD
.endif
SVNFLAGS?= -r HEAD
.if !defined(VCS_REVISION) && empty(VCS_REVISION)
.if !defined(SVNVERSION_CMD) && empty(SVNVERSION_CMD)
.if !defined(VCS_REVISION) || empty(VCS_REVISION)
.if !defined(SVNVERSION_CMD) || empty(SVNVERSION_CMD)
. for _D in ${PATH:S,:, ,g}
. if exists(${_D}/svnversion)
SVNVERSION_CMD?=${_D}/svnversion