fix use of empty in Makefile.ec2

empty() takes a variable name - not the expanded value

Reported by:	sjg
This commit is contained in:
Matt Macy 2018-07-22 23:33:48 +00:00
parent f30f0f2b47
commit 38c0c78e50
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336624

View File

@ -16,11 +16,11 @@ SVN_CMD= ${_P}/${_S}
. endfor
.endif
.if exists(${SRCTOP}/.svn)
. if empty(${EC2_SVNBRANCH})
. if empty(EC2_SVNBRANCH)
EC2_SVNBRANCH!= ${SVN_CMD} info --show-item relative-url ${WORLDDIR} | sed -e 's/\^\///'
. export EC2_SVNBRANCH
. endif
. if empty(${EC2_SVNREV})
. if empty(EC2_SVNREV)
EC2_SVNREV!= ${SVN_CMD} info --show-item last-changed-revision ${WORLDDIR}
. export EC2_SVNREV
. endif